mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-05-31 04:30:44 +00:00
Update vendored deps, including AWS SDK, openpgp, ftp, ...
This commit is contained in:
+47
@@ -1077,6 +1077,15 @@ func ExampleWAF_UpdateByteMatchSet_shared00() {
|
||||
Updates: []*waf.ByteMatchSetUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
ByteMatchTuple: &waf.ByteMatchTuple{
|
||||
FieldToMatch: &waf.FieldToMatch{
|
||||
Data: aws.String("referer"),
|
||||
Type: aws.String("HEADER"),
|
||||
},
|
||||
PositionalConstraint: aws.String("CONTAINS"),
|
||||
TargetString: []byte("badrefer1"),
|
||||
TextTransformation: aws.String("NONE"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1127,6 +1136,10 @@ func ExampleWAF_UpdateIPSet_shared00() {
|
||||
Updates: []*waf.IPSetUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
IPSetDescriptor: &waf.IPSetDescriptor{
|
||||
Type: aws.String("IPV4"),
|
||||
Value: aws.String("192.0.2.44/32"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1178,6 +1191,11 @@ func ExampleWAF_UpdateRule_shared00() {
|
||||
Updates: []*waf.RuleUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
Predicate: &waf.Predicate{
|
||||
DataId: aws.String("MyByteMatchSetID"),
|
||||
Negated: aws.Bool(false),
|
||||
Type: aws.String("ByteMatch"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1230,6 +1248,14 @@ func ExampleWAF_UpdateSizeConstraintSet_shared00() {
|
||||
Updates: []*waf.SizeConstraintSetUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
SizeConstraint: &waf.SizeConstraint{
|
||||
ComparisonOperator: aws.String("GT"),
|
||||
FieldToMatch: &waf.FieldToMatch{
|
||||
Type: aws.String("QUERY_STRING"),
|
||||
},
|
||||
Size: aws.Int64(0),
|
||||
TextTransformation: aws.String("NONE"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1282,6 +1308,12 @@ func ExampleWAF_UpdateSqlInjectionMatchSet_shared00() {
|
||||
Updates: []*waf.SqlInjectionMatchSetUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
SqlInjectionMatchTuple: &waf.SqlInjectionMatchTuple{
|
||||
FieldToMatch: &waf.FieldToMatch{
|
||||
Type: aws.String("QUERY_STRING"),
|
||||
},
|
||||
TextTransformation: aws.String("URL_DECODE"),
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -1333,6 +1365,13 @@ func ExampleWAF_UpdateWebACL_shared00() {
|
||||
Updates: []*waf.WebACLUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
ActivatedRule: &waf.ActivatedRule{
|
||||
Action: &waf.WafAction{
|
||||
Type: aws.String("ALLOW"),
|
||||
},
|
||||
Priority: aws.Int64(1),
|
||||
RuleId: aws.String("WAFRule-1-Example"),
|
||||
},
|
||||
},
|
||||
},
|
||||
WebACLId: aws.String("webacl-1472061481310"),
|
||||
@@ -1360,6 +1399,8 @@ func ExampleWAF_UpdateWebACL_shared00() {
|
||||
fmt.Println(waf.ErrCodeReferencedItemException, aerr.Error())
|
||||
case waf.ErrCodeLimitsExceededException:
|
||||
fmt.Println(waf.ErrCodeLimitsExceededException, aerr.Error())
|
||||
case waf.ErrCodeSubscriptionNotFoundException:
|
||||
fmt.Println(waf.ErrCodeSubscriptionNotFoundException, aerr.Error())
|
||||
default:
|
||||
fmt.Println(aerr.Error())
|
||||
}
|
||||
@@ -1385,6 +1426,12 @@ func ExampleWAF_UpdateXssMatchSet_shared00() {
|
||||
Updates: []*waf.XssMatchSetUpdate{
|
||||
{
|
||||
Action: aws.String("DELETE"),
|
||||
XssMatchTuple: &waf.XssMatchTuple{
|
||||
FieldToMatch: &waf.FieldToMatch{
|
||||
Type: aws.String("QUERY_STRING"),
|
||||
},
|
||||
TextTransformation: aws.String("URL_DECODE"),
|
||||
},
|
||||
},
|
||||
},
|
||||
XssMatchSetId: aws.String("example1ds3t-46da-4fdb-b8d5-abc321j569j5"),
|
||||
|
||||
Reference in New Issue
Block a user