Skip to content

Commit 38ca0ba

Browse files
Add distribution tenant, connection group, and multi-tenant distribution APIs to the CloudFront SDK.
1 parent a71baaa commit 38ca0ba

File tree

182 files changed

+27128
-256
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

182 files changed

+27128
-256
lines changed

generator/ServiceModels/cloudfront/cloudfront-2020-05-31.api.json

Lines changed: 1483 additions & 11 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cloudfront/cloudfront-2020-05-31.docs.json

Lines changed: 723 additions & 8 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cloudfront/cloudfront-2020-05-31.normal.json

Lines changed: 2074 additions & 36 deletions
Large diffs are not rendered by default.

generator/ServiceModels/cloudfront/cloudfront-2020-05-31.paginators.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,54 @@
66
"limit_key": "MaxItems",
77
"result_key": "CloudFrontOriginAccessIdentityList.Items"
88
},
9+
"ListConnectionGroups": {
10+
"input_token": "Marker",
11+
"output_token": "NextMarker",
12+
"limit_key": "MaxItems",
13+
"result_key": "ConnectionGroups"
14+
},
15+
"ListDistributionTenants": {
16+
"input_token": "Marker",
17+
"output_token": "NextMarker",
18+
"limit_key": "MaxItems",
19+
"result_key": "DistributionTenantList"
20+
},
21+
"ListDistributionTenantsByCustomization": {
22+
"input_token": "Marker",
23+
"output_token": "NextMarker",
24+
"limit_key": "MaxItems",
25+
"result_key": "DistributionTenantList"
26+
},
927
"ListDistributions": {
1028
"input_token": "Marker",
1129
"output_token": "DistributionList.NextMarker",
1230
"limit_key": "MaxItems",
1331
"result_key": "DistributionList.Items"
1432
},
33+
"ListDistributionsByConnectionMode": {
34+
"input_token": "Marker",
35+
"output_token": "DistributionList.NextMarker",
36+
"limit_key": "MaxItems",
37+
"result_key": "DistributionList.Items"
38+
},
39+
"ListDomainConflicts": {
40+
"input_token": "Marker",
41+
"output_token": "NextMarker",
42+
"limit_key": "MaxItems",
43+
"result_key": "DomainConflicts"
44+
},
1545
"ListInvalidations": {
1646
"input_token": "Marker",
1747
"output_token": "InvalidationList.NextMarker",
1848
"limit_key": "MaxItems",
1949
"result_key": "InvalidationList.Items"
2050
},
51+
"ListInvalidationsForDistributionTenant": {
52+
"input_token": "Marker",
53+
"output_token": "InvalidationList.NextMarker",
54+
"limit_key": "MaxItems",
55+
"result_key": "InvalidationList.Items"
56+
},
2157
"ListKeyValueStores": {
2258
"input_token": "Marker",
2359
"output_token": "KeyValueStoreList.NextMarker",

generator/ServiceModels/cloudfront/cloudfront-2020-05-31.waiters2.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@
2525
"expected" : "Completed"
2626
} ]
2727
},
28+
"InvalidationForDistributionTenantCompleted" : {
29+
"description" : "Wait until an invalidation for distribution tenant has completed.",
30+
"delay" : 20,
31+
"maxAttempts" : 30,
32+
"operation" : "GetInvalidationForDistributionTenant",
33+
"acceptors" : [ {
34+
"matcher" : "path",
35+
"argument" : "Invalidation.Status",
36+
"state" : "success",
37+
"expected" : "Completed"
38+
} ]
39+
},
2840
"StreamingDistributionDeployed" : {
2941
"description" : "Wait until a streaming distribution is deployed.",
3042
"delay" : 60,

sdk/code-analysis/ServiceAnalysis/CloudFront/Generated/PropertyValueRules.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<max>64</max>
77
<pattern>[a-zA-Z0-9-_]{1,64}</pattern>
88
</property-value-rule>
9+
<property-value-rule>
10+
<property>Amazon.CloudFront.Model.CreateDistributionTenantRequest.Name</property>
11+
<pattern>[a-zA-Z0-9][a-zA-Z0-9-.]{1,126}[a-zA-Z0-9]</pattern>
12+
</property-value-rule>
913
<property-value-rule>
1014
<property>Amazon.CloudFront.Model.CreateFunctionRequest.FunctionCode</property>
1115
<min>1</min>
@@ -128,11 +132,33 @@
128132
<max>32</max>
129133
<pattern>[a-z]{2}-[a-z]+-\d</pattern>
130134
</property-value-rule>
135+
<property-value-rule>
136+
<property>Amazon.CloudFront.Model.Parameter.Name</property>
137+
<min>1</min>
138+
<max>128</max>
139+
<pattern>[a-zA-Z0-9-_]+</pattern>
140+
</property-value-rule>
141+
<property-value-rule>
142+
<property>Amazon.CloudFront.Model.Parameter.Value</property>
143+
<min>1</min>
144+
<max>256</max>
145+
</property-value-rule>
146+
<property-value-rule>
147+
<property>Amazon.CloudFront.Model.ParameterDefinition.Name</property>
148+
<min>1</min>
149+
<max>128</max>
150+
<pattern>[a-zA-Z0-9-_]+</pattern>
151+
</property-value-rule>
131152
<property-value-rule>
132153
<property>Amazon.CloudFront.Model.ResponseHeadersPolicyServerTimingHeadersConfig.SamplingRate</property>
133154
<min>0</min>
134155
<max>100</max>
135156
</property-value-rule>
157+
<property-value-rule>
158+
<property>Amazon.CloudFront.Model.StringSchemaConfig.DefaultValue</property>
159+
<min>1</min>
160+
<max>256</max>
161+
</property-value-rule>
136162
<property-value-rule>
137163
<property>Amazon.CloudFront.Model.Tag.Key</property>
138164
<min>1</min>
Lines changed: 100 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CloudFront.Model
31+
{
32+
/// <summary>
33+
/// Container for the parameters to the AssociateDistributionTenantWebACL operation.
34+
/// Associates the WAF web ACL with a distribution tenant.
35+
/// </summary>
36+
public partial class AssociateDistributionTenantWebACLRequest : AmazonCloudFrontRequest
37+
{
38+
private string _id;
39+
private string _ifMatch;
40+
private string _webACLArn;
41+
42+
/// <summary>
43+
/// Gets and sets the property Id.
44+
/// <para>
45+
/// The ID of the distribution tenant.
46+
/// </para>
47+
/// </summary>
48+
[AWSProperty(Required=true)]
49+
public string Id
50+
{
51+
get { return this._id; }
52+
set { this._id = value; }
53+
}
54+
55+
// Check to see if Id property is set
56+
internal bool IsSetId()
57+
{
58+
return this._id != null;
59+
}
60+
61+
/// <summary>
62+
/// Gets and sets the property IfMatch.
63+
/// <para>
64+
/// The current <c>ETag</c> of the distribution tenant. This value is returned in the
65+
/// response of the <c>GetDistributionTenant</c> API operation.
66+
/// </para>
67+
/// </summary>
68+
public string IfMatch
69+
{
70+
get { return this._ifMatch; }
71+
set { this._ifMatch = value; }
72+
}
73+
74+
// Check to see if IfMatch property is set
75+
internal bool IsSetIfMatch()
76+
{
77+
return this._ifMatch != null;
78+
}
79+
80+
/// <summary>
81+
/// Gets and sets the property WebACLArn.
82+
/// <para>
83+
/// The Amazon Resource Name (ARN) of the WAF web ACL to associate.
84+
/// </para>
85+
/// </summary>
86+
[AWSProperty(Required=true)]
87+
public string WebACLArn
88+
{
89+
get { return this._webACLArn; }
90+
set { this._webACLArn = value; }
91+
}
92+
93+
// Check to see if WebACLArn property is set
94+
internal bool IsSetWebACLArn()
95+
{
96+
return this._webACLArn != null;
97+
}
98+
99+
}
100+
}
Lines changed: 96 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,96 @@
1+
/*
2+
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0
9+
*
10+
* or in the "license" file accompanying this file. This file is distributed
11+
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
16+
/*
17+
* Do not modify this file. This file is generated from the cloudfront-2020-05-31.normal.json service model.
18+
*/
19+
using System;
20+
using System.Collections.Generic;
21+
using System.Xml.Serialization;
22+
using System.Text;
23+
using System.IO;
24+
using System.Net;
25+
26+
using Amazon.Runtime;
27+
using Amazon.Runtime.Internal;
28+
29+
#pragma warning disable CS0612,CS0618,CS1570
30+
namespace Amazon.CloudFront.Model
31+
{
32+
/// <summary>
33+
/// This is the response object from the AssociateDistributionTenantWebACL operation.
34+
/// </summary>
35+
public partial class AssociateDistributionTenantWebACLResponse : AmazonWebServiceResponse
36+
{
37+
private string _eTag;
38+
private string _id;
39+
private string _webACLArn;
40+
41+
/// <summary>
42+
/// Gets and sets the property ETag.
43+
/// <para>
44+
/// The current version of the distribution tenant.
45+
/// </para>
46+
/// </summary>
47+
public string ETag
48+
{
49+
get { return this._eTag; }
50+
set { this._eTag = value; }
51+
}
52+
53+
// Check to see if ETag property is set
54+
internal bool IsSetETag()
55+
{
56+
return this._eTag != null;
57+
}
58+
59+
/// <summary>
60+
/// Gets and sets the property Id.
61+
/// <para>
62+
/// The ID of the distribution tenant.
63+
/// </para>
64+
/// </summary>
65+
public string Id
66+
{
67+
get { return this._id; }
68+
set { this._id = value; }
69+
}
70+
71+
// Check to see if Id property is set
72+
internal bool IsSetId()
73+
{
74+
return this._id != null;
75+
}
76+
77+
/// <summary>
78+
/// Gets and sets the property WebACLArn.
79+
/// <para>
80+
/// The ARN of the WAF web ACL that you associated with the distribution tenant.
81+
/// </para>
82+
/// </summary>
83+
public string WebACLArn
84+
{
85+
get { return this._webACLArn; }
86+
set { this._webACLArn = value; }
87+
}
88+
89+
// Check to see if WebACLArn property is set
90+
internal bool IsSetWebACLArn()
91+
{
92+
return this._webACLArn != null;
93+
}
94+
95+
}
96+
}

0 commit comments

Comments
 (0)