Skip to content

Commit ed7152e

Browse files
Support error message configuration for analysis templates
1 parent fa1b06d commit ed7152e

13 files changed

+411
-4
lines changed

generator/ServiceModels/cleanrooms/cleanrooms-2022-02-17.api.json

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1817,7 +1817,8 @@
18171817
"source":{"shape":"AnalysisSource"},
18181818
"sourceMetadata":{"shape":"AnalysisSourceMetadata"},
18191819
"analysisParameters":{"shape":"AnalysisParameterList"},
1820-
"validations":{"shape":"AnalysisTemplateValidationStatusDetailList"}
1820+
"validations":{"shape":"AnalysisTemplateValidationStatusDetailList"},
1821+
"errorMessageConfiguration":{"shape":"ErrorMessageConfiguration"}
18211822
}
18221823
},
18231824
"AnalysisTemplateArn":{
@@ -2225,7 +2226,8 @@
22252226
"source":{"shape":"AnalysisSource"},
22262227
"sourceMetadata":{"shape":"AnalysisSourceMetadata"},
22272228
"analysisParameters":{"shape":"AnalysisParameterList"},
2228-
"validations":{"shape":"AnalysisTemplateValidationStatusDetailList"}
2229+
"validations":{"shape":"AnalysisTemplateValidationStatusDetailList"},
2230+
"errorMessageConfiguration":{"shape":"ErrorMessageConfiguration"}
22292231
}
22302232
},
22312233
"CollaborationAnalysisTemplateList":{
@@ -3036,7 +3038,8 @@
30363038
"source":{"shape":"AnalysisSource"},
30373039
"tags":{"shape":"TagMap"},
30383040
"analysisParameters":{"shape":"AnalysisParameterList"},
3039-
"schema":{"shape":"AnalysisSchema"}
3041+
"schema":{"shape":"AnalysisSchema"},
3042+
"errorMessageConfiguration":{"shape":"ErrorMessageConfiguration"}
30403043
}
30413044
},
30423045
"CreateAnalysisTemplateOutput":{
@@ -3799,6 +3802,17 @@
37993802
"max":20,
38003803
"min":1
38013804
},
3805+
"ErrorMessageConfiguration":{
3806+
"type":"structure",
3807+
"required":["type"],
3808+
"members":{
3809+
"type":{"shape":"ErrorMessageType"}
3810+
}
3811+
},
3812+
"ErrorMessageType":{
3813+
"type":"string",
3814+
"enum":["DETAILED"]
3815+
},
38023816
"FilterableMemberStatus":{
38033817
"type":"string",
38043818
"enum":[

generator/ServiceModels/cleanrooms/cleanrooms-2022-02-17.docs.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1610,6 +1610,20 @@
16101610
"DifferentialPrivacyTemplateUpdateParameters$epsilon": "<p>The updated epsilon value that you want to use.</p>"
16111611
}
16121612
},
1613+
"ErrorMessageConfiguration": {
1614+
"base": "<p>A structure that defines the level of detail included in error messages returned by PySpark jobs. This configuration allows you to control the verbosity of error messages to help with troubleshooting PySpark jobs while maintaining appropriate security controls.</p>",
1615+
"refs": {
1616+
"AnalysisTemplate$errorMessageConfiguration": "<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>",
1617+
"CollaborationAnalysisTemplate$errorMessageConfiguration": "<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>",
1618+
"CreateAnalysisTemplateInput$errorMessageConfiguration": "<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>"
1619+
}
1620+
},
1621+
"ErrorMessageType": {
1622+
"base": null,
1623+
"refs": {
1624+
"ErrorMessageConfiguration$type": "<p>The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.</p> <p>Because this setting may expose sensitive data, it is recommended for development and testing environments.</p>"
1625+
}
1626+
},
16131627
"FilterableMemberStatus": {
16141628
"base": null,
16151629
"refs": {

generator/ServiceModels/cleanrooms/cleanrooms-2022-02-17.normal.json

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2098,6 +2098,10 @@
20982098
"validations":{
20992099
"shape":"AnalysisTemplateValidationStatusDetailList",
21002100
"documentation":"<p>Information about the validations performed on the analysis template.</p>"
2101+
},
2102+
"errorMessageConfiguration":{
2103+
"shape":"ErrorMessageConfiguration",
2104+
"documentation":"<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>"
21012105
}
21022106
},
21032107
"documentation":"<p>The analysis template.</p>"
@@ -2748,6 +2752,10 @@
27482752
"validations":{
27492753
"shape":"AnalysisTemplateValidationStatusDetailList",
27502754
"documentation":"<p>The validations that were performed.</p>"
2755+
},
2756+
"errorMessageConfiguration":{
2757+
"shape":"ErrorMessageConfiguration",
2758+
"documentation":"<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>"
27512759
}
27522760
},
27532761
"documentation":"<p>The analysis template within a collaboration.</p>"
@@ -4248,7 +4256,11 @@
42484256
"shape":"AnalysisParameterList",
42494257
"documentation":"<p>The parameters of the analysis template.</p>"
42504258
},
4251-
"schema":{"shape":"AnalysisSchema"}
4259+
"schema":{"shape":"AnalysisSchema"},
4260+
"errorMessageConfiguration":{
4261+
"shape":"ErrorMessageConfiguration",
4262+
"documentation":"<p>The configuration that specifies the level of detail in error messages returned by analyses using this template. When set to <code>DETAILED</code>, error messages include more information to help troubleshoot issues with PySpark jobs. Detailed error messages may expose underlying data, including sensitive information. Recommended for faster troubleshooting in development and testing environments.</p>"
4263+
}
42524264
}
42534265
},
42544266
"CreateAnalysisTemplateOutput":{
@@ -5339,6 +5351,21 @@
53395351
"max":20,
53405352
"min":1
53415353
},
5354+
"ErrorMessageConfiguration":{
5355+
"type":"structure",
5356+
"required":["type"],
5357+
"members":{
5358+
"type":{
5359+
"shape":"ErrorMessageType",
5360+
"documentation":"<p>The level of detail for error messages returned by the PySpark job. When set to DETAILED, error messages include more information to help troubleshoot issues with your PySpark job.</p> <p>Because this setting may expose sensitive data, it is recommended for development and testing environments.</p>"
5361+
}
5362+
},
5363+
"documentation":"<p>A structure that defines the level of detail included in error messages returned by PySpark jobs. This configuration allows you to control the verbosity of error messages to help with troubleshooting PySpark jobs while maintaining appropriate security controls.</p>"
5364+
},
5365+
"ErrorMessageType":{
5366+
"type":"string",
5367+
"enum":["DETAILED"]
5368+
},
53425369
"FilterableMemberStatus":{
53435370
"type":"string",
53445371
"enum":[

sdk/src/Services/CleanRooms/Generated/Model/AnalysisTemplate.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public partial class AnalysisTemplate
4040
private string _collaborationId;
4141
private DateTime? _createTime;
4242
private string _description;
43+
private ErrorMessageConfiguration _errorMessageConfiguration;
4344
private AnalysisFormat _format;
4445
private string _id;
4546
private string _membershipArn;
@@ -170,6 +171,28 @@ internal bool IsSetDescription()
170171
return this._description != null;
171172
}
172173

174+
/// <summary>
175+
/// Gets and sets the property ErrorMessageConfiguration.
176+
/// <para>
177+
/// The configuration that specifies the level of detail in error messages returned by
178+
/// analyses using this template. When set to <c>DETAILED</c>, error messages include
179+
/// more information to help troubleshoot issues with PySpark jobs. Detailed error messages
180+
/// may expose underlying data, including sensitive information. Recommended for faster
181+
/// troubleshooting in development and testing environments.
182+
/// </para>
183+
/// </summary>
184+
public ErrorMessageConfiguration ErrorMessageConfiguration
185+
{
186+
get { return this._errorMessageConfiguration; }
187+
set { this._errorMessageConfiguration = value; }
188+
}
189+
190+
// Check to see if ErrorMessageConfiguration property is set
191+
internal bool IsSetErrorMessageConfiguration()
192+
{
193+
return this._errorMessageConfiguration != null;
194+
}
195+
173196
/// <summary>
174197
/// Gets and sets the property Format.
175198
/// <para>

sdk/src/Services/CleanRooms/Generated/Model/CollaborationAnalysisTemplate.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public partial class CollaborationAnalysisTemplate
4141
private DateTime? _createTime;
4242
private string _creatorAccountId;
4343
private string _description;
44+
private ErrorMessageConfiguration _errorMessageConfiguration;
4445
private AnalysisFormat _format;
4546
private string _id;
4647
private string _name;
@@ -190,6 +191,28 @@ internal bool IsSetDescription()
190191
return this._description != null;
191192
}
192193

194+
/// <summary>
195+
/// Gets and sets the property ErrorMessageConfiguration.
196+
/// <para>
197+
/// The configuration that specifies the level of detail in error messages returned by
198+
/// analyses using this template. When set to <c>DETAILED</c>, error messages include
199+
/// more information to help troubleshoot issues with PySpark jobs. Detailed error messages
200+
/// may expose underlying data, including sensitive information. Recommended for faster
201+
/// troubleshooting in development and testing environments.
202+
/// </para>
203+
/// </summary>
204+
public ErrorMessageConfiguration ErrorMessageConfiguration
205+
{
206+
get { return this._errorMessageConfiguration; }
207+
set { this._errorMessageConfiguration = value; }
208+
}
209+
210+
// Check to see if ErrorMessageConfiguration property is set
211+
internal bool IsSetErrorMessageConfiguration()
212+
{
213+
return this._errorMessageConfiguration != null;
214+
}
215+
193216
/// <summary>
194217
/// Gets and sets the property Format.
195218
/// <para>

sdk/src/Services/CleanRooms/Generated/Model/CreateAnalysisTemplateRequest.cs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public partial class CreateAnalysisTemplateRequest : AmazonCleanRoomsRequest
3737
{
3838
private List<AnalysisParameter> _analysisParameters = AWSConfigs.InitializeCollections ? new List<AnalysisParameter>() : null;
3939
private string _description;
40+
private ErrorMessageConfiguration _errorMessageConfiguration;
4041
private AnalysisFormat _format;
4142
private string _membershipIdentifier;
4243
private string _name;
@@ -87,6 +88,28 @@ internal bool IsSetDescription()
8788
return this._description != null;
8889
}
8990

91+
/// <summary>
92+
/// Gets and sets the property ErrorMessageConfiguration.
93+
/// <para>
94+
/// The configuration that specifies the level of detail in error messages returned by
95+
/// analyses using this template. When set to <c>DETAILED</c>, error messages include
96+
/// more information to help troubleshoot issues with PySpark jobs. Detailed error messages
97+
/// may expose underlying data, including sensitive information. Recommended for faster
98+
/// troubleshooting in development and testing environments.
99+
/// </para>
100+
/// </summary>
101+
public ErrorMessageConfiguration ErrorMessageConfiguration
102+
{
103+
get { return this._errorMessageConfiguration; }
104+
set { this._errorMessageConfiguration = value; }
105+
}
106+
107+
// Check to see if ErrorMessageConfiguration property is set
108+
internal bool IsSetErrorMessageConfiguration()
109+
{
110+
return this._errorMessageConfiguration != null;
111+
}
112+
90113
/// <summary>
91114
/// Gets and sets the property Format.
92115
/// <para>
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 cleanrooms-2022-02-17.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.CleanRooms.Model
31+
{
32+
/// <summary>
33+
/// A structure that defines the level of detail included in error messages returned by
34+
/// PySpark jobs. This configuration allows you to control the verbosity of error messages
35+
/// to help with troubleshooting PySpark jobs while maintaining appropriate security controls.
36+
/// </summary>
37+
public partial class ErrorMessageConfiguration
38+
{
39+
private ErrorMessageType _type;
40+
41+
/// <summary>
42+
/// Gets and sets the property Type.
43+
/// <para>
44+
/// The level of detail for error messages returned by the PySpark job. When set to DETAILED,
45+
/// error messages include more information to help troubleshoot issues with your PySpark
46+
/// job.
47+
/// </para>
48+
///
49+
/// <para>
50+
/// Because this setting may expose sensitive data, it is recommended for development
51+
/// and testing environments.
52+
/// </para>
53+
/// </summary>
54+
[AWSProperty(Required=true)]
55+
public ErrorMessageType Type
56+
{
57+
get { return this._type; }
58+
set { this._type = value; }
59+
}
60+
61+
// Check to see if Type property is set
62+
internal bool IsSetType()
63+
{
64+
return this._type != null;
65+
}
66+
67+
}
68+
}

sdk/src/Services/CleanRooms/Generated/Model/Internal/MarshallTransformations/AnalysisTemplateUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ public AnalysisTemplate Unmarshall(JsonUnmarshallerContext context, ref Streamin
9292
unmarshalledObject.Description = unmarshaller.Unmarshall(context, ref reader);
9393
continue;
9494
}
95+
if (context.TestExpression("errorMessageConfiguration", targetDepth))
96+
{
97+
var unmarshaller = ErrorMessageConfigurationUnmarshaller.Instance;
98+
unmarshalledObject.ErrorMessageConfiguration = unmarshaller.Unmarshall(context, ref reader);
99+
continue;
100+
}
95101
if (context.TestExpression("format", targetDepth))
96102
{
97103
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/CleanRooms/Generated/Model/Internal/MarshallTransformations/CollaborationAnalysisTemplateUnmarshaller.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ public CollaborationAnalysisTemplate Unmarshall(JsonUnmarshallerContext context,
9898
unmarshalledObject.Description = unmarshaller.Unmarshall(context, ref reader);
9999
continue;
100100
}
101+
if (context.TestExpression("errorMessageConfiguration", targetDepth))
102+
{
103+
var unmarshaller = ErrorMessageConfigurationUnmarshaller.Instance;
104+
unmarshalledObject.ErrorMessageConfiguration = unmarshaller.Unmarshall(context, ref reader);
105+
continue;
106+
}
101107
if (context.TestExpression("format", targetDepth))
102108
{
103109
var unmarshaller = StringUnmarshaller.Instance;

sdk/src/Services/CleanRooms/Generated/Model/Internal/MarshallTransformations/CreateAnalysisTemplateRequestMarshaller.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,17 @@ public IRequest Marshall(CreateAnalysisTemplateRequest publicRequest)
9898
context.Writer.WriteStringValue(publicRequest.Description);
9999
}
100100

101+
if(publicRequest.IsSetErrorMessageConfiguration())
102+
{
103+
context.Writer.WritePropertyName("errorMessageConfiguration");
104+
context.Writer.WriteStartObject();
105+
106+
var marshaller = ErrorMessageConfigurationMarshaller.Instance;
107+
marshaller.Marshall(publicRequest.ErrorMessageConfiguration, context);
108+
109+
context.Writer.WriteEndObject();
110+
}
111+
101112
if(publicRequest.IsSetFormat())
102113
{
103114
context.Writer.WritePropertyName("format");

0 commit comments

Comments
 (0)