repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// RefreshTokenRequestBody Marshaller
/// </summary>
public class RefreshTokenRequestBodyMarshaller : IRequestMarshaller<RefreshTokenRequestBody, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(RefreshTokenRequestBody requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetClientId())
{
context.Writer.WritePropertyName("clientId");
context.Writer.Write(requestObject.ClientId);
}
if(requestObject.IsSetToken())
{
context.Writer.WritePropertyName("token");
context.Writer.Write(requestObject.Token);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static RefreshTokenRequestBodyMarshaller Instance = new RefreshTokenRequestBodyMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// RefreshToken Request Marshaller
/// </summary>
public class RefreshTokenRequestMarshaller : IMarshaller<IRequest, RefreshTokenRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((RefreshTokenRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(RefreshTokenRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AmplifyUIBuilder");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-08-11";
request.HttpMethod = "POST";
if (!publicRequest.IsSetProvider())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field Provider set");
request.AddPathResource("{provider}", StringUtils.FromString(publicRequest.Provider));
request.ResourcePath = "/tokens/{provider}/refresh";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
var context = new JsonMarshallerContext(request, writer);
context.Writer.WriteObjectStart();
var marshaller = RefreshTokenRequestBodyMarshaller.Instance;
marshaller.Marshall(publicRequest.RefreshTokenBody, context);
context.Writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static RefreshTokenRequestMarshaller _instance = new RefreshTokenRequestMarshaller();
internal static RefreshTokenRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RefreshTokenRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 102 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RefreshToken operation
/// </summary>
public class RefreshTokenResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
RefreshTokenResponse response = new RefreshTokenResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("accessToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.AccessToken = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("expiresIn", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
response.ExpiresIn = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAmplifyUIBuilderException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static RefreshTokenResponseUnmarshaller _instance = new RefreshTokenResponseUnmarshaller();
internal static RefreshTokenResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RefreshTokenResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceConflictException Object
/// </summary>
public class ResourceConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceConflictException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceConflictException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceConflictException unmarshalledObject = new ResourceConflictException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceConflictExceptionUnmarshaller _instance = new ResourceConflictExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceConflictExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResourceNotFoundException Object
/// </summary>
public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResourceNotFoundExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// SectionalElement Marshaller
/// </summary>
public class SectionalElementMarshaller : IRequestMarshaller<SectionalElement, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(SectionalElement requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetExcluded())
{
context.Writer.WritePropertyName("excluded");
context.Writer.Write(requestObject.Excluded);
}
if(requestObject.IsSetLevel())
{
context.Writer.WritePropertyName("level");
context.Writer.Write(requestObject.Level);
}
if(requestObject.IsSetOrientation())
{
context.Writer.WritePropertyName("orientation");
context.Writer.Write(requestObject.Orientation);
}
if(requestObject.IsSetPosition())
{
context.Writer.WritePropertyName("position");
context.Writer.WriteObjectStart();
var marshaller = FieldPositionMarshaller.Instance;
marshaller.Marshall(requestObject.Position, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetText())
{
context.Writer.WritePropertyName("text");
context.Writer.Write(requestObject.Text);
}
if(requestObject.IsSetType())
{
context.Writer.WritePropertyName("type");
context.Writer.Write(requestObject.Type);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SectionalElementMarshaller Instance = new SectionalElementMarshaller();
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SectionalElement Object
/// </summary>
public class SectionalElementUnmarshaller : IUnmarshaller<SectionalElement, XmlUnmarshallerContext>, IUnmarshaller<SectionalElement, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SectionalElement IUnmarshaller<SectionalElement, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public SectionalElement Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SectionalElement unmarshalledObject = new SectionalElement();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("excluded", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.Excluded = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("level", targetDepth))
{
var unmarshaller = IntUnmarshaller.Instance;
unmarshalledObject.Level = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("orientation", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Orientation = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("position", targetDepth))
{
var unmarshaller = FieldPositionUnmarshaller.Instance;
unmarshalledObject.Position = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("text", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Text = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SectionalElementUnmarshaller _instance = new SectionalElementUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SectionalElementUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 122 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ServiceQuotaExceededException Object
/// </summary>
public class ServiceQuotaExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<ServiceQuotaExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ServiceQuotaExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ServiceQuotaExceededException unmarshalledObject = new ServiceQuotaExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ServiceQuotaExceededExceptionUnmarshaller _instance = new ServiceQuotaExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceQuotaExceededExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// SortProperty Marshaller
/// </summary>
public class SortPropertyMarshaller : IRequestMarshaller<SortProperty, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(SortProperty requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDirection())
{
context.Writer.WritePropertyName("direction");
context.Writer.Write(requestObject.Direction);
}
if(requestObject.IsSetField())
{
context.Writer.WritePropertyName("field");
context.Writer.Write(requestObject.Field);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static SortPropertyMarshaller Instance = new SortPropertyMarshaller();
}
} | 68 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SortProperty Object
/// </summary>
public class SortPropertyUnmarshaller : IUnmarshaller<SortProperty, XmlUnmarshallerContext>, IUnmarshaller<SortProperty, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SortProperty IUnmarshaller<SortProperty, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public SortProperty Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SortProperty unmarshalledObject = new SortProperty();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("direction", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Direction = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("field", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Field = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SortPropertyUnmarshaller _instance = new SortPropertyUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SortPropertyUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartCodegenJobData Marshaller
/// </summary>
public class StartCodegenJobDataMarshaller : IRequestMarshaller<StartCodegenJobData, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(StartCodegenJobData requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetAutoGenerateForms())
{
context.Writer.WritePropertyName("autoGenerateForms");
context.Writer.Write(requestObject.AutoGenerateForms);
}
if(requestObject.IsSetFeatures())
{
context.Writer.WritePropertyName("features");
context.Writer.WriteObjectStart();
var marshaller = CodegenFeatureFlagsMarshaller.Instance;
marshaller.Marshall(requestObject.Features, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetGenericDataSchema())
{
context.Writer.WritePropertyName("genericDataSchema");
context.Writer.WriteObjectStart();
var marshaller = CodegenJobGenericDataSchemaMarshaller.Instance;
marshaller.Marshall(requestObject.GenericDataSchema, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetRenderConfig())
{
context.Writer.WritePropertyName("renderConfig");
context.Writer.WriteObjectStart();
var marshaller = CodegenJobRenderConfigMarshaller.Instance;
marshaller.Marshall(requestObject.RenderConfig, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetTags())
{
context.Writer.WritePropertyName("tags");
context.Writer.WriteObjectStart();
foreach (var requestObjectTagsKvp in requestObject.Tags)
{
context.Writer.WritePropertyName(requestObjectTagsKvp.Key);
var requestObjectTagsValue = requestObjectTagsKvp.Value;
context.Writer.Write(requestObjectTagsValue);
}
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static StartCodegenJobDataMarshaller Instance = new StartCodegenJobDataMarshaller();
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// StartCodegenJob Request Marshaller
/// </summary>
public class StartCodegenJobRequestMarshaller : IMarshaller<IRequest, StartCodegenJobRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((StartCodegenJobRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(StartCodegenJobRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AmplifyUIBuilder");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-08-11";
request.HttpMethod = "POST";
if (!publicRequest.IsSetAppId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field AppId set");
request.AddPathResource("{appId}", StringUtils.FromString(publicRequest.AppId));
if (!publicRequest.IsSetEnvironmentName())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field EnvironmentName set");
request.AddPathResource("{environmentName}", StringUtils.FromString(publicRequest.EnvironmentName));
if (publicRequest.IsSetClientToken())
request.Parameters.Add("clientToken", StringUtils.FromString(publicRequest.ClientToken));
else
request.Parameters.Add("clientToken", System.Guid.NewGuid().ToString());
request.ResourcePath = "/app/{appId}/environment/{environmentName}/codegen-jobs";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
var context = new JsonMarshallerContext(request, writer);
context.Writer.WriteObjectStart();
var marshaller = StartCodegenJobDataMarshaller.Instance;
marshaller.Marshall(publicRequest.CodegenJobToCreate, context);
context.Writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
request.UseQueryString = true;
return request;
}
private static StartCodegenJobRequestMarshaller _instance = new StartCodegenJobRequestMarshaller();
internal static StartCodegenJobRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartCodegenJobRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 112 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for StartCodegenJob operation
/// </summary>
public class StartCodegenJobResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
StartCodegenJobResponse response = new StartCodegenJobResponse();
var unmarshaller = CodegenJobUnmarshaller.Instance;
response.Entity = unmarshaller.Unmarshall(context);
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAmplifyUIBuilderException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static StartCodegenJobResponseUnmarshaller _instance = new StartCodegenJobResponseUnmarshaller();
internal static StartCodegenJobResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static StartCodegenJobResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThemeSummary Object
/// </summary>
public class ThemeSummaryUnmarshaller : IUnmarshaller<ThemeSummary, XmlUnmarshallerContext>, IUnmarshaller<ThemeSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ThemeSummary IUnmarshaller<ThemeSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThemeSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ThemeSummary unmarshalledObject = new ThemeSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("appId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("environmentName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EnvironmentName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ThemeSummaryUnmarshaller _instance = new ThemeSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThemeSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 110 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Theme Object
/// </summary>
public class ThemeUnmarshaller : IUnmarshaller<Theme, XmlUnmarshallerContext>, IUnmarshaller<Theme, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Theme IUnmarshaller<Theme, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Theme Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Theme unmarshalledObject = new Theme();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("appId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.AppId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("createdAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("environmentName", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EnvironmentName = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("modifiedAt", targetDepth))
{
var unmarshaller = DateTimeUnmarshaller.Instance;
unmarshalledObject.ModifiedAt = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("overrides", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ThemeValues, ThemeValuesUnmarshaller>(ThemeValuesUnmarshaller.Instance);
unmarshalledObject.Overrides = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("tags", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, string, StringUnmarshaller, StringUnmarshaller>(StringUnmarshaller.Instance, StringUnmarshaller.Instance);
unmarshalledObject.Tags = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("values", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ThemeValues, ThemeValuesUnmarshaller>(ThemeValuesUnmarshaller.Instance);
unmarshalledObject.Values = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ThemeUnmarshaller _instance = new ThemeUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThemeUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 140 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// ThemeValue Marshaller
/// </summary>
public class ThemeValueMarshaller : IRequestMarshaller<ThemeValue, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ThemeValue requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetChildren())
{
context.Writer.WritePropertyName("children");
context.Writer.WriteArrayStart();
foreach(var requestObjectChildrenListValue in requestObject.Children)
{
context.Writer.WriteObjectStart();
var marshaller = ThemeValuesMarshaller.Instance;
marshaller.Marshall(requestObjectChildrenListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("value");
context.Writer.Write(requestObject.Value);
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ThemeValueMarshaller Instance = new ThemeValueMarshaller();
}
} | 78 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// ThemeValues Marshaller
/// </summary>
public class ThemeValuesMarshaller : IRequestMarshaller<ThemeValues, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ThemeValues requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetKey())
{
context.Writer.WritePropertyName("key");
context.Writer.Write(requestObject.Key);
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("value");
context.Writer.WriteObjectStart();
var marshaller = ThemeValueMarshaller.Instance;
marshaller.Marshall(requestObject.Value, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ThemeValuesMarshaller Instance = new ThemeValuesMarshaller();
}
} | 73 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThemeValues Object
/// </summary>
public class ThemeValuesUnmarshaller : IUnmarshaller<ThemeValues, XmlUnmarshallerContext>, IUnmarshaller<ThemeValues, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ThemeValues IUnmarshaller<ThemeValues, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThemeValues Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ThemeValues unmarshalledObject = new ThemeValues();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("key", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Key = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("value", targetDepth))
{
var unmarshaller = ThemeValueUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ThemeValuesUnmarshaller _instance = new ThemeValuesUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThemeValuesUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThemeValue Object
/// </summary>
public class ThemeValueUnmarshaller : IUnmarshaller<ThemeValue, XmlUnmarshallerContext>, IUnmarshaller<ThemeValue, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ThemeValue IUnmarshaller<ThemeValue, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThemeValue Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ThemeValue unmarshalledObject = new ThemeValue();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("children", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ThemeValues, ThemeValuesUnmarshaller>(ThemeValuesUnmarshaller.Instance);
unmarshalledObject.Children = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("value", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ThemeValueUnmarshaller _instance = new ThemeValueUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThemeValueUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThrottlingException Object
/// </summary>
public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThrottlingExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UnauthorizedException Object
/// </summary>
public class UnauthorizedExceptionUnmarshaller : IErrorResponseUnmarshaller<UnauthorizedException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public UnauthorizedException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public UnauthorizedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
UnauthorizedException unmarshalledObject = new UnauthorizedException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static UnauthorizedExceptionUnmarshaller _instance = new UnauthorizedExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static UnauthorizedExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 85 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateComponentData Marshaller
/// </summary>
public class UpdateComponentDataMarshaller : IRequestMarshaller<UpdateComponentData, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateComponentData requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBindingProperties())
{
context.Writer.WritePropertyName("bindingProperties");
context.Writer.WriteObjectStart();
foreach (var requestObjectBindingPropertiesKvp in requestObject.BindingProperties)
{
context.Writer.WritePropertyName(requestObjectBindingPropertiesKvp.Key);
var requestObjectBindingPropertiesValue = requestObjectBindingPropertiesKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = ComponentBindingPropertiesValueMarshaller.Instance;
marshaller.Marshall(requestObjectBindingPropertiesValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetChildren())
{
context.Writer.WritePropertyName("children");
context.Writer.WriteArrayStart();
foreach(var requestObjectChildrenListValue in requestObject.Children)
{
context.Writer.WriteObjectStart();
var marshaller = ComponentChildMarshaller.Instance;
marshaller.Marshall(requestObjectChildrenListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetCollectionProperties())
{
context.Writer.WritePropertyName("collectionProperties");
context.Writer.WriteObjectStart();
foreach (var requestObjectCollectionPropertiesKvp in requestObject.CollectionProperties)
{
context.Writer.WritePropertyName(requestObjectCollectionPropertiesKvp.Key);
var requestObjectCollectionPropertiesValue = requestObjectCollectionPropertiesKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = ComponentDataConfigurationMarshaller.Instance;
marshaller.Marshall(requestObjectCollectionPropertiesValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetComponentType())
{
context.Writer.WritePropertyName("componentType");
context.Writer.Write(requestObject.ComponentType);
}
if(requestObject.IsSetEvents())
{
context.Writer.WritePropertyName("events");
context.Writer.WriteObjectStart();
foreach (var requestObjectEventsKvp in requestObject.Events)
{
context.Writer.WritePropertyName(requestObjectEventsKvp.Key);
var requestObjectEventsValue = requestObjectEventsKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = ComponentEventMarshaller.Instance;
marshaller.Marshall(requestObjectEventsValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetId())
{
context.Writer.WritePropertyName("id");
context.Writer.Write(requestObject.Id);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetOverrides())
{
context.Writer.WritePropertyName("overrides");
context.Writer.WriteObjectStart();
foreach (var requestObjectOverridesKvp in requestObject.Overrides)
{
context.Writer.WritePropertyName(requestObjectOverridesKvp.Key);
var requestObjectOverridesValue = requestObjectOverridesKvp.Value;
context.Writer.WriteObjectStart();
foreach (var requestObjectOverridesValueKvp in requestObjectOverridesValue)
{
context.Writer.WritePropertyName(requestObjectOverridesValueKvp.Key);
var requestObjectOverridesValueValue = requestObjectOverridesValueKvp.Value;
context.Writer.Write(requestObjectOverridesValueValue);
}
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetProperties())
{
context.Writer.WritePropertyName("properties");
context.Writer.WriteObjectStart();
foreach (var requestObjectPropertiesKvp in requestObject.Properties)
{
context.Writer.WritePropertyName(requestObjectPropertiesKvp.Key);
var requestObjectPropertiesValue = requestObjectPropertiesKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = ComponentPropertyMarshaller.Instance;
marshaller.Marshall(requestObjectPropertiesValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetSchemaVersion())
{
context.Writer.WritePropertyName("schemaVersion");
context.Writer.Write(requestObject.SchemaVersion);
}
if(requestObject.IsSetSourceId())
{
context.Writer.WritePropertyName("sourceId");
context.Writer.Write(requestObject.SourceId);
}
if(requestObject.IsSetVariants())
{
context.Writer.WritePropertyName("variants");
context.Writer.WriteArrayStart();
foreach(var requestObjectVariantsListValue in requestObject.Variants)
{
context.Writer.WriteObjectStart();
var marshaller = ComponentVariantMarshaller.Instance;
marshaller.Marshall(requestObjectVariantsListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateComponentDataMarshaller Instance = new UpdateComponentDataMarshaller();
}
} | 216 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateComponent Request Marshaller
/// </summary>
public class UpdateComponentRequestMarshaller : IMarshaller<IRequest, UpdateComponentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateComponentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateComponentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AmplifyUIBuilder");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-08-11";
request.HttpMethod = "PATCH";
if (!publicRequest.IsSetAppId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field AppId set");
request.AddPathResource("{appId}", StringUtils.FromString(publicRequest.AppId));
if (!publicRequest.IsSetEnvironmentName())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field EnvironmentName set");
request.AddPathResource("{environmentName}", StringUtils.FromString(publicRequest.EnvironmentName));
if (!publicRequest.IsSetId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field Id set");
request.AddPathResource("{id}", StringUtils.FromString(publicRequest.Id));
if (publicRequest.IsSetClientToken())
request.Parameters.Add("clientToken", StringUtils.FromString(publicRequest.ClientToken));
else
request.Parameters.Add("clientToken", System.Guid.NewGuid().ToString());
request.ResourcePath = "/app/{appId}/environment/{environmentName}/components/{id}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
var context = new JsonMarshallerContext(request, writer);
context.Writer.WriteObjectStart();
var marshaller = UpdateComponentDataMarshaller.Instance;
marshaller.Marshall(publicRequest.UpdatedComponent, context);
context.Writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
request.UseQueryString = true;
return request;
}
private static UpdateComponentRequestMarshaller _instance = new UpdateComponentRequestMarshaller();
internal static UpdateComponentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateComponent operation
/// </summary>
public class UpdateComponentResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateComponentResponse response = new UpdateComponentResponse();
var unmarshaller = ComponentUnmarshaller.Instance;
response.Entity = unmarshaller.Unmarshall(context);
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException"))
{
return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAmplifyUIBuilderException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateComponentResponseUnmarshaller _instance = new UpdateComponentResponseUnmarshaller();
internal static UpdateComponentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateComponentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateFormData Marshaller
/// </summary>
public class UpdateFormDataMarshaller : IRequestMarshaller<UpdateFormData, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateFormData requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetCta())
{
context.Writer.WritePropertyName("cta");
context.Writer.WriteObjectStart();
var marshaller = FormCTAMarshaller.Instance;
marshaller.Marshall(requestObject.Cta, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetDataType())
{
context.Writer.WritePropertyName("dataType");
context.Writer.WriteObjectStart();
var marshaller = FormDataTypeConfigMarshaller.Instance;
marshaller.Marshall(requestObject.DataType, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetFields())
{
context.Writer.WritePropertyName("fields");
context.Writer.WriteObjectStart();
foreach (var requestObjectFieldsKvp in requestObject.Fields)
{
context.Writer.WritePropertyName(requestObjectFieldsKvp.Key);
var requestObjectFieldsValue = requestObjectFieldsKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = FieldConfigMarshaller.Instance;
marshaller.Marshall(requestObjectFieldsValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetFormActionType())
{
context.Writer.WritePropertyName("formActionType");
context.Writer.Write(requestObject.FormActionType);
}
if(requestObject.IsSetLabelDecorator())
{
context.Writer.WritePropertyName("labelDecorator");
context.Writer.Write(requestObject.LabelDecorator);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetSchemaVersion())
{
context.Writer.WritePropertyName("schemaVersion");
context.Writer.Write(requestObject.SchemaVersion);
}
if(requestObject.IsSetSectionalElements())
{
context.Writer.WritePropertyName("sectionalElements");
context.Writer.WriteObjectStart();
foreach (var requestObjectSectionalElementsKvp in requestObject.SectionalElements)
{
context.Writer.WritePropertyName(requestObjectSectionalElementsKvp.Key);
var requestObjectSectionalElementsValue = requestObjectSectionalElementsKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = SectionalElementMarshaller.Instance;
marshaller.Marshall(requestObjectSectionalElementsValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetStyle())
{
context.Writer.WritePropertyName("style");
context.Writer.WriteObjectStart();
var marshaller = FormStyleMarshaller.Instance;
marshaller.Marshall(requestObject.Style, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateFormDataMarshaller Instance = new UpdateFormDataMarshaller();
}
} | 151 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateForm Request Marshaller
/// </summary>
public class UpdateFormRequestMarshaller : IMarshaller<IRequest, UpdateFormRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateFormRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateFormRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AmplifyUIBuilder");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-08-11";
request.HttpMethod = "PATCH";
if (!publicRequest.IsSetAppId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field AppId set");
request.AddPathResource("{appId}", StringUtils.FromString(publicRequest.AppId));
if (!publicRequest.IsSetEnvironmentName())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field EnvironmentName set");
request.AddPathResource("{environmentName}", StringUtils.FromString(publicRequest.EnvironmentName));
if (!publicRequest.IsSetId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field Id set");
request.AddPathResource("{id}", StringUtils.FromString(publicRequest.Id));
if (publicRequest.IsSetClientToken())
request.Parameters.Add("clientToken", StringUtils.FromString(publicRequest.ClientToken));
else
request.Parameters.Add("clientToken", System.Guid.NewGuid().ToString());
request.ResourcePath = "/app/{appId}/environment/{environmentName}/forms/{id}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
var context = new JsonMarshallerContext(request, writer);
context.Writer.WriteObjectStart();
var marshaller = UpdateFormDataMarshaller.Instance;
marshaller.Marshall(publicRequest.UpdatedForm, context);
context.Writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
request.UseQueryString = true;
return request;
}
private static UpdateFormRequestMarshaller _instance = new UpdateFormRequestMarshaller();
internal static UpdateFormRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateFormRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateForm operation
/// </summary>
public class UpdateFormResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateFormResponse response = new UpdateFormResponse();
var unmarshaller = FormUnmarshaller.Instance;
response.Entity = unmarshaller.Unmarshall(context);
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException"))
{
return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAmplifyUIBuilderException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateFormResponseUnmarshaller _instance = new UpdateFormResponseUnmarshaller();
internal static UpdateFormResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateFormResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateThemeData Marshaller
/// </summary>
public class UpdateThemeDataMarshaller : IRequestMarshaller<UpdateThemeData, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(UpdateThemeData requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetId())
{
context.Writer.WritePropertyName("id");
context.Writer.Write(requestObject.Id);
}
if(requestObject.IsSetName())
{
context.Writer.WritePropertyName("name");
context.Writer.Write(requestObject.Name);
}
if(requestObject.IsSetOverrides())
{
context.Writer.WritePropertyName("overrides");
context.Writer.WriteArrayStart();
foreach(var requestObjectOverridesListValue in requestObject.Overrides)
{
context.Writer.WriteObjectStart();
var marshaller = ThemeValuesMarshaller.Instance;
marshaller.Marshall(requestObjectOverridesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.WriteObjectStart();
var marshaller = ThemeValuesMarshaller.Instance;
marshaller.Marshall(requestObjectValuesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static UpdateThemeDataMarshaller Instance = new UpdateThemeDataMarshaller();
}
} | 100 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// UpdateTheme Request Marshaller
/// </summary>
public class UpdateThemeRequestMarshaller : IMarshaller<IRequest, UpdateThemeRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((UpdateThemeRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(UpdateThemeRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AmplifyUIBuilder");
request.Headers["Content-Type"] = "application/json";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2021-08-11";
request.HttpMethod = "PATCH";
if (!publicRequest.IsSetAppId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field AppId set");
request.AddPathResource("{appId}", StringUtils.FromString(publicRequest.AppId));
if (!publicRequest.IsSetEnvironmentName())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field EnvironmentName set");
request.AddPathResource("{environmentName}", StringUtils.FromString(publicRequest.EnvironmentName));
if (!publicRequest.IsSetId())
throw new AmazonAmplifyUIBuilderException("Request object does not have required field Id set");
request.AddPathResource("{id}", StringUtils.FromString(publicRequest.Id));
if (publicRequest.IsSetClientToken())
request.Parameters.Add("clientToken", StringUtils.FromString(publicRequest.ClientToken));
else
request.Parameters.Add("clientToken", System.Guid.NewGuid().ToString());
request.ResourcePath = "/app/{appId}/environment/{environmentName}/themes/{id}";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
var context = new JsonMarshallerContext(request, writer);
context.Writer.WriteObjectStart();
var marshaller = UpdateThemeDataMarshaller.Instance;
marshaller.Marshall(publicRequest.UpdatedTheme, context);
context.Writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
request.UseQueryString = true;
return request;
}
private static UpdateThemeRequestMarshaller _instance = new UpdateThemeRequestMarshaller();
internal static UpdateThemeRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateThemeRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
} | 115 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for UpdateTheme operation
/// </summary>
public class UpdateThemeResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
UpdateThemeResponse response = new UpdateThemeResponse();
var unmarshaller = ThemeUnmarshaller.Instance;
response.Entity = unmarshaller.Unmarshall(context);
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerException"))
{
return InternalServerExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException"))
{
return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceConflictException"))
{
return ResourceConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAmplifyUIBuilderException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static UpdateThemeResponseUnmarshaller _instance = new UpdateThemeResponseUnmarshaller();
internal static UpdateThemeResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static UpdateThemeResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 109 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// ValueMapping Marshaller
/// </summary>
public class ValueMappingMarshaller : IRequestMarshaller<ValueMapping, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ValueMapping requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetDisplayValue())
{
context.Writer.WritePropertyName("displayValue");
context.Writer.WriteObjectStart();
var marshaller = FormInputValuePropertyMarshaller.Instance;
marshaller.Marshall(requestObject.DisplayValue, context);
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetValue())
{
context.Writer.WritePropertyName("value");
context.Writer.WriteObjectStart();
var marshaller = FormInputValuePropertyMarshaller.Instance;
marshaller.Marshall(requestObject.Value, context);
context.Writer.WriteObjectEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ValueMappingMarshaller Instance = new ValueMappingMarshaller();
}
} | 78 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// ValueMappings Marshaller
/// </summary>
public class ValueMappingsMarshaller : IRequestMarshaller<ValueMappings, JsonMarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="requestObject"></param>
/// <param name="context"></param>
/// <returns></returns>
public void Marshall(ValueMappings requestObject, JsonMarshallerContext context)
{
if(requestObject.IsSetBindingProperties())
{
context.Writer.WritePropertyName("bindingProperties");
context.Writer.WriteObjectStart();
foreach (var requestObjectBindingPropertiesKvp in requestObject.BindingProperties)
{
context.Writer.WritePropertyName(requestObjectBindingPropertiesKvp.Key);
var requestObjectBindingPropertiesValue = requestObjectBindingPropertiesKvp.Value;
context.Writer.WriteObjectStart();
var marshaller = FormInputBindingPropertiesValueMarshaller.Instance;
marshaller.Marshall(requestObjectBindingPropertiesValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteObjectEnd();
}
if(requestObject.IsSetValues())
{
context.Writer.WritePropertyName("values");
context.Writer.WriteArrayStart();
foreach(var requestObjectValuesListValue in requestObject.Values)
{
context.Writer.WriteObjectStart();
var marshaller = ValueMappingMarshaller.Instance;
marshaller.Marshall(requestObjectValuesListValue, context);
context.Writer.WriteObjectEnd();
}
context.Writer.WriteArrayEnd();
}
}
/// <summary>
/// Singleton Marshaller.
/// </summary>
public readonly static ValueMappingsMarshaller Instance = new ValueMappingsMarshaller();
}
} | 91 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValueMappings Object
/// </summary>
public class ValueMappingsUnmarshaller : IUnmarshaller<ValueMappings, XmlUnmarshallerContext>, IUnmarshaller<ValueMappings, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ValueMappings IUnmarshaller<ValueMappings, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValueMappings Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ValueMappings unmarshalledObject = new ValueMappings();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("bindingProperties", targetDepth))
{
var unmarshaller = new DictionaryUnmarshaller<string, FormInputBindingPropertiesValue, StringUnmarshaller, FormInputBindingPropertiesValueUnmarshaller>(StringUnmarshaller.Instance, FormInputBindingPropertiesValueUnmarshaller.Instance);
unmarshalledObject.BindingProperties = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("values", targetDepth))
{
var unmarshaller = new ListUnmarshaller<ValueMapping, ValueMappingUnmarshaller>(ValueMappingUnmarshaller.Instance);
unmarshalledObject.Values = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ValueMappingsUnmarshaller _instance = new ValueMappingsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValueMappingsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ValueMapping Object
/// </summary>
public class ValueMappingUnmarshaller : IUnmarshaller<ValueMapping, XmlUnmarshallerContext>, IUnmarshaller<ValueMapping, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
ValueMapping IUnmarshaller<ValueMapping, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ValueMapping Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
ValueMapping unmarshalledObject = new ValueMapping();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("displayValue", targetDepth))
{
var unmarshaller = FormInputValuePropertyUnmarshaller.Instance;
unmarshalledObject.DisplayValue = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("value", targetDepth))
{
var unmarshaller = FormInputValuePropertyUnmarshaller.Instance;
unmarshalledObject.Value = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ValueMappingUnmarshaller _instance = new ValueMappingUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ValueMappingUnmarshaller Instance
{
get
{
return _instance;
}
}
}
} | 98 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginators for the AmplifyUIBuilder service
///</summary>
public class AmplifyUIBuilderPaginatorFactory : IAmplifyUIBuilderPaginatorFactory
{
private readonly IAmazonAmplifyUIBuilder client;
internal AmplifyUIBuilderPaginatorFactory(IAmazonAmplifyUIBuilder client)
{
this.client = client;
}
/// <summary>
/// Paginator for ExportComponents operation
///</summary>
public IExportComponentsPaginator ExportComponents(ExportComponentsRequest request)
{
return new ExportComponentsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ExportForms operation
///</summary>
public IExportFormsPaginator ExportForms(ExportFormsRequest request)
{
return new ExportFormsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ExportThemes operation
///</summary>
public IExportThemesPaginator ExportThemes(ExportThemesRequest request)
{
return new ExportThemesPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListCodegenJobs operation
///</summary>
public IListCodegenJobsPaginator ListCodegenJobs(ListCodegenJobsRequest request)
{
return new ListCodegenJobsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListComponents operation
///</summary>
public IListComponentsPaginator ListComponents(ListComponentsRequest request)
{
return new ListComponentsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListForms operation
///</summary>
public IListFormsPaginator ListForms(ListFormsRequest request)
{
return new ListFormsPaginator(this.client, request);
}
/// <summary>
/// Paginator for ListThemes operation
///</summary>
public IListThemesPaginator ListThemes(ListThemesRequest request)
{
return new ListThemesPaginator(this.client, request);
}
}
} | 94 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ExportComponents paginators.
/// </summary>
internal sealed partial class ExportComponentsPaginator : IPaginator<ExportComponentsResponse>, IExportComponentsPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ExportComponentsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ExportComponentsResponse> Responses => new PaginatedResponse<ExportComponentsResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<Component> Entities =>
new PaginatedResultKeyResponse<ExportComponentsResponse, Component>(this, (i) => i.Entities);
internal ExportComponentsPaginator(IAmazonAmplifyUIBuilder client, ExportComponentsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ExportComponentsResponse> IPaginator<ExportComponentsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ExportComponents(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ExportComponentsResponse> IPaginator<ExportComponentsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ExportComponentsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ExportForms paginators.
/// </summary>
internal sealed partial class ExportFormsPaginator : IPaginator<ExportFormsResponse>, IExportFormsPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ExportFormsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ExportFormsResponse> Responses => new PaginatedResponse<ExportFormsResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<Form> Entities =>
new PaginatedResultKeyResponse<ExportFormsResponse, Form>(this, (i) => i.Entities);
internal ExportFormsPaginator(IAmazonAmplifyUIBuilder client, ExportFormsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ExportFormsResponse> IPaginator<ExportFormsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportFormsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ExportForms(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ExportFormsResponse> IPaginator<ExportFormsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportFormsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ExportFormsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ExportThemes paginators.
/// </summary>
internal sealed partial class ExportThemesPaginator : IPaginator<ExportThemesResponse>, IExportThemesPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ExportThemesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ExportThemesResponse> Responses => new PaginatedResponse<ExportThemesResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<Theme> Entities =>
new PaginatedResultKeyResponse<ExportThemesResponse, Theme>(this, (i) => i.Entities);
internal ExportThemesPaginator(IAmazonAmplifyUIBuilder client, ExportThemesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ExportThemesResponse> IPaginator<ExportThemesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportThemesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ExportThemes(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ExportThemesResponse> IPaginator<ExportThemesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ExportThemesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ExportThemesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginators for the AmplifyUIBuilder service
///</summary>
public interface IAmplifyUIBuilderPaginatorFactory
{
/// <summary>
/// Paginator for ExportComponents operation
///</summary>
IExportComponentsPaginator ExportComponents(ExportComponentsRequest request);
/// <summary>
/// Paginator for ExportForms operation
///</summary>
IExportFormsPaginator ExportForms(ExportFormsRequest request);
/// <summary>
/// Paginator for ExportThemes operation
///</summary>
IExportThemesPaginator ExportThemes(ExportThemesRequest request);
/// <summary>
/// Paginator for ListCodegenJobs operation
///</summary>
IListCodegenJobsPaginator ListCodegenJobs(ListCodegenJobsRequest request);
/// <summary>
/// Paginator for ListComponents operation
///</summary>
IListComponentsPaginator ListComponents(ListComponentsRequest request);
/// <summary>
/// Paginator for ListForms operation
///</summary>
IListFormsPaginator ListForms(ListFormsRequest request);
/// <summary>
/// Paginator for ListThemes operation
///</summary>
IListThemesPaginator ListThemes(ListThemesRequest request);
}
} | 63 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ExportComponents operation
///</summary>
public interface IExportComponentsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ExportComponentsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<Component> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ExportForms operation
///</summary>
public interface IExportFormsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ExportFormsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<Form> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ExportThemes operation
///</summary>
public interface IExportThemesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ExportThemesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<Theme> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ListCodegenJobs operation
///</summary>
public interface IListCodegenJobsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListCodegenJobsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<CodegenJobSummary> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ListComponents operation
///</summary>
public interface IListComponentsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListComponentsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<ComponentSummary> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ListForms operation
///</summary>
public interface IListFormsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListFormsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<FormSummary> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Paginator for the ListThemes operation
///</summary>
public interface IListThemesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<ListThemesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
IPaginatedEnumerable<ThemeSummary> Entities { get; }
}
} | 38 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ListCodegenJobs paginators.
/// </summary>
internal sealed partial class ListCodegenJobsPaginator : IPaginator<ListCodegenJobsResponse>, IListCodegenJobsPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ListCodegenJobsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListCodegenJobsResponse> Responses => new PaginatedResponse<ListCodegenJobsResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<CodegenJobSummary> Entities =>
new PaginatedResultKeyResponse<ListCodegenJobsResponse, CodegenJobSummary>(this, (i) => i.Entities);
internal ListCodegenJobsPaginator(IAmazonAmplifyUIBuilder client, ListCodegenJobsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListCodegenJobsResponse> IPaginator<ListCodegenJobsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListCodegenJobsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListCodegenJobs(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListCodegenJobsResponse> IPaginator<ListCodegenJobsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListCodegenJobsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListCodegenJobsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ListComponents paginators.
/// </summary>
internal sealed partial class ListComponentsPaginator : IPaginator<ListComponentsResponse>, IListComponentsPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ListComponentsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListComponentsResponse> Responses => new PaginatedResponse<ListComponentsResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<ComponentSummary> Entities =>
new PaginatedResultKeyResponse<ListComponentsResponse, ComponentSummary>(this, (i) => i.Entities);
internal ListComponentsPaginator(IAmazonAmplifyUIBuilder client, ListComponentsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListComponentsResponse> IPaginator<ListComponentsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListComponents(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListComponentsResponse> IPaginator<ListComponentsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListComponentsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListComponentsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ListForms paginators.
/// </summary>
internal sealed partial class ListFormsPaginator : IPaginator<ListFormsResponse>, IListFormsPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ListFormsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListFormsResponse> Responses => new PaginatedResponse<ListFormsResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<FormSummary> Entities =>
new PaginatedResultKeyResponse<ListFormsResponse, FormSummary>(this, (i) => i.Entities);
internal ListFormsPaginator(IAmazonAmplifyUIBuilder client, ListFormsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListFormsResponse> IPaginator<ListFormsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListFormsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListForms(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListFormsResponse> IPaginator<ListFormsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListFormsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListFormsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AmplifyUIBuilder.Model
{
/// <summary>
/// Base class for ListThemes paginators.
/// </summary>
internal sealed partial class ListThemesPaginator : IPaginator<ListThemesResponse>, IListThemesPaginator
{
private readonly IAmazonAmplifyUIBuilder _client;
private readonly ListThemesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<ListThemesResponse> Responses => new PaginatedResponse<ListThemesResponse>(this);
/// <summary>
/// Enumerable containing all of the Entities
/// </summary>
public IPaginatedEnumerable<ThemeSummary> Entities =>
new PaginatedResultKeyResponse<ListThemesResponse, ThemeSummary>(this, (i) => i.Entities);
internal ListThemesPaginator(IAmazonAmplifyUIBuilder client, ListThemesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<ListThemesResponse> IPaginator<ListThemesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListThemesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.ListThemes(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<ListThemesResponse> IPaginator<ListThemesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
ListThemesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.ListThemesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations;
using Amazon.AmplifyUIBuilder.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Implementation for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonAmplifyUIBuilderClient : AmazonServiceClient, IAmazonAmplifyUIBuilder
{
private static IServiceMetadata serviceMetadata = new AmazonAmplifyUIBuilderMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAmplifyUIBuilderPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAmplifyUIBuilderPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AmplifyUIBuilderPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAmplifyUIBuilderClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig()) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AmazonAmplifyUIBuilderConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials)
: this(credentials, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, AmazonAmplifyUIBuilderConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAmplifyUIBuilderEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateComponent
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual IAsyncResult BeginCreateComponent(CreateComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComponent.</param>
///
/// <returns>Returns a CreateComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse EndCreateComponent(IAsyncResult asyncResult)
{
return EndInvoke<CreateComponentResponse>(asyncResult);
}
#endregion
#region CreateForm
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual CreateFormResponse CreateForm(CreateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return Invoke<CreateFormResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual IAsyncResult BeginCreateForm(CreateFormRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateForm.</param>
///
/// <returns>Returns a CreateFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual CreateFormResponse EndCreateForm(IAsyncResult asyncResult)
{
return EndInvoke<CreateFormResponse>(asyncResult);
}
#endregion
#region CreateTheme
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual CreateThemeResponse CreateTheme(CreateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return Invoke<CreateThemeResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual IAsyncResult BeginCreateTheme(CreateThemeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateTheme.</param>
///
/// <returns>Returns a CreateThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual CreateThemeResponse EndCreateTheme(IAsyncResult asyncResult)
{
return EndInvoke<CreateThemeResponse>(asyncResult);
}
#endregion
#region DeleteComponent
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual IAsyncResult BeginDeleteComponent(DeleteComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComponent.</param>
///
/// <returns>Returns a DeleteComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse EndDeleteComponent(IAsyncResult asyncResult)
{
return EndInvoke<DeleteComponentResponse>(asyncResult);
}
#endregion
#region DeleteForm
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual DeleteFormResponse DeleteForm(DeleteFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return Invoke<DeleteFormResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual IAsyncResult BeginDeleteForm(DeleteFormRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteForm.</param>
///
/// <returns>Returns a DeleteFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual DeleteFormResponse EndDeleteForm(IAsyncResult asyncResult)
{
return EndInvoke<DeleteFormResponse>(asyncResult);
}
#endregion
#region DeleteTheme
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual DeleteThemeResponse DeleteTheme(DeleteThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return Invoke<DeleteThemeResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DeleteTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual IAsyncResult BeginDeleteTheme(DeleteThemeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DeleteTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTheme.</param>
///
/// <returns>Returns a DeleteThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual DeleteThemeResponse EndDeleteTheme(IAsyncResult asyncResult)
{
return EndInvoke<DeleteThemeResponse>(asyncResult);
}
#endregion
#region ExchangeCodeForToken
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return Invoke<ExchangeCodeForTokenResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ExchangeCodeForToken operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExchangeCodeForToken
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual IAsyncResult BeginExchangeCodeForToken(ExchangeCodeForTokenRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ExchangeCodeForToken operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExchangeCodeForToken.</param>
///
/// <returns>Returns a ExchangeCodeForTokenResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual ExchangeCodeForTokenResponse EndExchangeCodeForToken(IAsyncResult asyncResult)
{
return EndInvoke<ExchangeCodeForTokenResponse>(asyncResult);
}
#endregion
#region ExportComponents
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual ExportComponentsResponse ExportComponents(ExportComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return Invoke<ExportComponentsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ExportComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportComponents operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual IAsyncResult BeginExportComponents(ExportComponentsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ExportComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportComponents.</param>
///
/// <returns>Returns a ExportComponentsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual ExportComponentsResponse EndExportComponents(IAsyncResult asyncResult)
{
return EndInvoke<ExportComponentsResponse>(asyncResult);
}
#endregion
#region ExportForms
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual ExportFormsResponse ExportForms(ExportFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return Invoke<ExportFormsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ExportForms operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportForms operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportForms
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual IAsyncResult BeginExportForms(ExportFormsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ExportForms operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportForms.</param>
///
/// <returns>Returns a ExportFormsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual ExportFormsResponse EndExportForms(IAsyncResult asyncResult)
{
return EndInvoke<ExportFormsResponse>(asyncResult);
}
#endregion
#region ExportThemes
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual ExportThemesResponse ExportThemes(ExportThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return Invoke<ExportThemesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ExportThemes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportThemes operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportThemes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual IAsyncResult BeginExportThemes(ExportThemesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ExportThemes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportThemes.</param>
///
/// <returns>Returns a ExportThemesResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual ExportThemesResponse EndExportThemes(IAsyncResult asyncResult)
{
return EndInvoke<ExportThemesResponse>(asyncResult);
}
#endregion
#region GetCodegenJob
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return Invoke<GetCodegenJobResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetCodegenJob operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCodegenJob
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual IAsyncResult BeginGetCodegenJob(GetCodegenJobRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetCodegenJob operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCodegenJob.</param>
///
/// <returns>Returns a GetCodegenJobResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual GetCodegenJobResponse EndGetCodegenJob(IAsyncResult asyncResult)
{
return EndInvoke<GetCodegenJobResponse>(asyncResult);
}
#endregion
#region GetComponent
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual GetComponentResponse GetComponent(GetComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return Invoke<GetComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual IAsyncResult BeginGetComponent(GetComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetComponent.</param>
///
/// <returns>Returns a GetComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual GetComponentResponse EndGetComponent(IAsyncResult asyncResult)
{
return EndInvoke<GetComponentResponse>(asyncResult);
}
#endregion
#region GetForm
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual GetFormResponse GetForm(GetFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return Invoke<GetFormResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual IAsyncResult BeginGetForm(GetFormRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetForm.</param>
///
/// <returns>Returns a GetFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual GetFormResponse EndGetForm(IAsyncResult asyncResult)
{
return EndInvoke<GetFormResponse>(asyncResult);
}
#endregion
#region GetMetadata
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual GetMetadataResponse GetMetadata(GetMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return Invoke<GetMetadataResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetMetadata operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetMetadata operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetadata
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual IAsyncResult BeginGetMetadata(GetMetadataRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetMetadata operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetadata.</param>
///
/// <returns>Returns a GetMetadataResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual GetMetadataResponse EndGetMetadata(IAsyncResult asyncResult)
{
return EndInvoke<GetMetadataResponse>(asyncResult);
}
#endregion
#region GetTheme
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual GetThemeResponse GetTheme(GetThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return Invoke<GetThemeResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the GetTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual IAsyncResult BeginGetTheme(GetThemeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the GetTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTheme.</param>
///
/// <returns>Returns a GetThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual GetThemeResponse EndGetTheme(IAsyncResult asyncResult)
{
return EndInvoke<GetThemeResponse>(asyncResult);
}
#endregion
#region ListCodegenJobs
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return Invoke<ListCodegenJobsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListCodegenJobs operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCodegenJobs
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual IAsyncResult BeginListCodegenJobs(ListCodegenJobsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListCodegenJobs operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCodegenJobs.</param>
///
/// <returns>Returns a ListCodegenJobsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual ListCodegenJobsResponse EndListCodegenJobs(IAsyncResult asyncResult)
{
return EndInvoke<ListCodegenJobsResponse>(asyncResult);
}
#endregion
#region ListComponents
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListComponents operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual IAsyncResult BeginListComponents(ListComponentsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListComponents.</param>
///
/// <returns>Returns a ListComponentsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse EndListComponents(IAsyncResult asyncResult)
{
return EndInvoke<ListComponentsResponse>(asyncResult);
}
#endregion
#region ListForms
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual ListFormsResponse ListForms(ListFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return Invoke<ListFormsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListForms operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListForms operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListForms
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual IAsyncResult BeginListForms(ListFormsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListForms operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListForms.</param>
///
/// <returns>Returns a ListFormsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual ListFormsResponse EndListForms(IAsyncResult asyncResult)
{
return EndInvoke<ListFormsResponse>(asyncResult);
}
#endregion
#region ListThemes
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual ListThemesResponse ListThemes(ListThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return Invoke<ListThemesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ListThemes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListThemes operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListThemes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual IAsyncResult BeginListThemes(ListThemesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ListThemes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListThemes.</param>
///
/// <returns>Returns a ListThemesResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual ListThemesResponse EndListThemes(IAsyncResult asyncResult)
{
return EndInvoke<ListThemesResponse>(asyncResult);
}
#endregion
#region PutMetadataFlag
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return Invoke<PutMetadataFlagResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the PutMetadataFlag operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetadataFlag
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual IAsyncResult BeginPutMetadataFlag(PutMetadataFlagRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the PutMetadataFlag operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetadataFlag.</param>
///
/// <returns>Returns a PutMetadataFlagResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual PutMetadataFlagResponse EndPutMetadataFlag(IAsyncResult asyncResult)
{
return EndInvoke<PutMetadataFlagResponse>(asyncResult);
}
#endregion
#region RefreshToken
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual RefreshTokenResponse RefreshToken(RefreshTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return Invoke<RefreshTokenResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the RefreshToken operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RefreshToken operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRefreshToken
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual IAsyncResult BeginRefreshToken(RefreshTokenRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the RefreshToken operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRefreshToken.</param>
///
/// <returns>Returns a RefreshTokenResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual RefreshTokenResponse EndRefreshToken(IAsyncResult asyncResult)
{
return EndInvoke<RefreshTokenResponse>(asyncResult);
}
#endregion
#region StartCodegenJob
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return Invoke<StartCodegenJobResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the StartCodegenJob operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartCodegenJob
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual IAsyncResult BeginStartCodegenJob(StartCodegenJobRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the StartCodegenJob operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartCodegenJob.</param>
///
/// <returns>Returns a StartCodegenJobResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual StartCodegenJobResponse EndStartCodegenJob(IAsyncResult asyncResult)
{
return EndInvoke<StartCodegenJobResponse>(asyncResult);
}
#endregion
#region UpdateComponent
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual IAsyncResult BeginUpdateComponent(UpdateComponentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponent.</param>
///
/// <returns>Returns a UpdateComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse EndUpdateComponent(IAsyncResult asyncResult)
{
return EndInvoke<UpdateComponentResponse>(asyncResult);
}
#endregion
#region UpdateForm
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual UpdateFormResponse UpdateForm(UpdateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return Invoke<UpdateFormResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual IAsyncResult BeginUpdateForm(UpdateFormRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateForm.</param>
///
/// <returns>Returns a UpdateFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual UpdateFormResponse EndUpdateForm(IAsyncResult asyncResult)
{
return EndInvoke<UpdateFormResponse>(asyncResult);
}
#endregion
#region UpdateTheme
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual UpdateThemeResponse UpdateTheme(UpdateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return Invoke<UpdateThemeResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the UpdateTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual IAsyncResult BeginUpdateTheme(UpdateThemeRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the UpdateTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateTheme.</param>
///
/// <returns>Returns a UpdateThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual UpdateThemeResponse EndUpdateTheme(IAsyncResult asyncResult)
{
return EndInvoke<UpdateThemeResponse>(asyncResult);
}
#endregion
}
} | 1,841 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AmplifyUIBuilder.Model;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Interface for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonAmplifyUIBuilder : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAmplifyUIBuilderPaginatorFactory Paginators { get; }
#endif
#region CreateComponent
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse CreateComponent(CreateComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
IAsyncResult BeginCreateComponent(CreateComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateComponent.</param>
///
/// <returns>Returns a CreateComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse EndCreateComponent(IAsyncResult asyncResult);
#endregion
#region CreateForm
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
CreateFormResponse CreateForm(CreateFormRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
IAsyncResult BeginCreateForm(CreateFormRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateForm.</param>
///
/// <returns>Returns a CreateFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
CreateFormResponse EndCreateForm(IAsyncResult asyncResult);
#endregion
#region CreateTheme
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
CreateThemeResponse CreateTheme(CreateThemeRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
IAsyncResult BeginCreateTheme(CreateThemeRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateTheme.</param>
///
/// <returns>Returns a CreateThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
CreateThemeResponse EndCreateTheme(IAsyncResult asyncResult);
#endregion
#region DeleteComponent
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse DeleteComponent(DeleteComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
IAsyncResult BeginDeleteComponent(DeleteComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteComponent.</param>
///
/// <returns>Returns a DeleteComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse EndDeleteComponent(IAsyncResult asyncResult);
#endregion
#region DeleteForm
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
DeleteFormResponse DeleteForm(DeleteFormRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
IAsyncResult BeginDeleteForm(DeleteFormRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteForm.</param>
///
/// <returns>Returns a DeleteFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
DeleteFormResponse EndDeleteForm(IAsyncResult asyncResult);
#endregion
#region DeleteTheme
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
DeleteThemeResponse DeleteTheme(DeleteThemeRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DeleteTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
IAsyncResult BeginDeleteTheme(DeleteThemeRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DeleteTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteTheme.</param>
///
/// <returns>Returns a DeleteThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
DeleteThemeResponse EndDeleteTheme(IAsyncResult asyncResult);
#endregion
#region ExchangeCodeForToken
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ExchangeCodeForToken operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExchangeCodeForToken
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
IAsyncResult BeginExchangeCodeForToken(ExchangeCodeForTokenRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ExchangeCodeForToken operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExchangeCodeForToken.</param>
///
/// <returns>Returns a ExchangeCodeForTokenResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
ExchangeCodeForTokenResponse EndExchangeCodeForToken(IAsyncResult asyncResult);
#endregion
#region ExportComponents
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
ExportComponentsResponse ExportComponents(ExportComponentsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ExportComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportComponents operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
IAsyncResult BeginExportComponents(ExportComponentsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ExportComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportComponents.</param>
///
/// <returns>Returns a ExportComponentsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
ExportComponentsResponse EndExportComponents(IAsyncResult asyncResult);
#endregion
#region ExportForms
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
ExportFormsResponse ExportForms(ExportFormsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ExportForms operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportForms operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportForms
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
IAsyncResult BeginExportForms(ExportFormsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ExportForms operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportForms.</param>
///
/// <returns>Returns a ExportFormsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
ExportFormsResponse EndExportForms(IAsyncResult asyncResult);
#endregion
#region ExportThemes
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
ExportThemesResponse ExportThemes(ExportThemesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ExportThemes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ExportThemes operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportThemes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
IAsyncResult BeginExportThemes(ExportThemesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ExportThemes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportThemes.</param>
///
/// <returns>Returns a ExportThemesResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
ExportThemesResponse EndExportThemes(IAsyncResult asyncResult);
#endregion
#region GetCodegenJob
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetCodegenJob operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCodegenJob
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
IAsyncResult BeginGetCodegenJob(GetCodegenJobRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetCodegenJob operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCodegenJob.</param>
///
/// <returns>Returns a GetCodegenJobResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
GetCodegenJobResponse EndGetCodegenJob(IAsyncResult asyncResult);
#endregion
#region GetComponent
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
GetComponentResponse GetComponent(GetComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
IAsyncResult BeginGetComponent(GetComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetComponent.</param>
///
/// <returns>Returns a GetComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
GetComponentResponse EndGetComponent(IAsyncResult asyncResult);
#endregion
#region GetForm
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
GetFormResponse GetForm(GetFormRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
IAsyncResult BeginGetForm(GetFormRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetForm.</param>
///
/// <returns>Returns a GetFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
GetFormResponse EndGetForm(IAsyncResult asyncResult);
#endregion
#region GetMetadata
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
GetMetadataResponse GetMetadata(GetMetadataRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetMetadata operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetMetadata operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetMetadata
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
IAsyncResult BeginGetMetadata(GetMetadataRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetMetadata operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetMetadata.</param>
///
/// <returns>Returns a GetMetadataResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
GetMetadataResponse EndGetMetadata(IAsyncResult asyncResult);
#endregion
#region GetTheme
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
GetThemeResponse GetTheme(GetThemeRequest request);
/// <summary>
/// Initiates the asynchronous execution of the GetTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the GetTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
IAsyncResult BeginGetTheme(GetThemeRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the GetTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetTheme.</param>
///
/// <returns>Returns a GetThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
GetThemeResponse EndGetTheme(IAsyncResult asyncResult);
#endregion
#region ListCodegenJobs
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListCodegenJobs operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCodegenJobs
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
IAsyncResult BeginListCodegenJobs(ListCodegenJobsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListCodegenJobs operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCodegenJobs.</param>
///
/// <returns>Returns a ListCodegenJobsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
ListCodegenJobsResponse EndListCodegenJobs(IAsyncResult asyncResult);
#endregion
#region ListComponents
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse ListComponents(ListComponentsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListComponents operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListComponents
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
IAsyncResult BeginListComponents(ListComponentsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListComponents operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListComponents.</param>
///
/// <returns>Returns a ListComponentsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse EndListComponents(IAsyncResult asyncResult);
#endregion
#region ListForms
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
ListFormsResponse ListForms(ListFormsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListForms operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListForms operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListForms
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
IAsyncResult BeginListForms(ListFormsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListForms operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListForms.</param>
///
/// <returns>Returns a ListFormsResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
ListFormsResponse EndListForms(IAsyncResult asyncResult);
#endregion
#region ListThemes
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
ListThemesResponse ListThemes(ListThemesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ListThemes operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ListThemes operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListThemes
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
IAsyncResult BeginListThemes(ListThemesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ListThemes operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginListThemes.</param>
///
/// <returns>Returns a ListThemesResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
ListThemesResponse EndListThemes(IAsyncResult asyncResult);
#endregion
#region PutMetadataFlag
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request);
/// <summary>
/// Initiates the asynchronous execution of the PutMetadataFlag operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetadataFlag
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
IAsyncResult BeginPutMetadataFlag(PutMetadataFlagRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the PutMetadataFlag operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutMetadataFlag.</param>
///
/// <returns>Returns a PutMetadataFlagResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
PutMetadataFlagResponse EndPutMetadataFlag(IAsyncResult asyncResult);
#endregion
#region RefreshToken
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
RefreshTokenResponse RefreshToken(RefreshTokenRequest request);
/// <summary>
/// Initiates the asynchronous execution of the RefreshToken operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RefreshToken operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRefreshToken
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
IAsyncResult BeginRefreshToken(RefreshTokenRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the RefreshToken operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRefreshToken.</param>
///
/// <returns>Returns a RefreshTokenResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
RefreshTokenResponse EndRefreshToken(IAsyncResult asyncResult);
#endregion
#region StartCodegenJob
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request);
/// <summary>
/// Initiates the asynchronous execution of the StartCodegenJob operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndStartCodegenJob
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
IAsyncResult BeginStartCodegenJob(StartCodegenJobRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the StartCodegenJob operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginStartCodegenJob.</param>
///
/// <returns>Returns a StartCodegenJobResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
StartCodegenJobResponse EndStartCodegenJob(IAsyncResult asyncResult);
#endregion
#region UpdateComponent
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse UpdateComponent(UpdateComponentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateComponent
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
IAsyncResult BeginUpdateComponent(UpdateComponentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateComponent operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateComponent.</param>
///
/// <returns>Returns a UpdateComponentResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse EndUpdateComponent(IAsyncResult asyncResult);
#endregion
#region UpdateForm
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
UpdateFormResponse UpdateForm(UpdateFormRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateForm operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateForm operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateForm
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
IAsyncResult BeginUpdateForm(UpdateFormRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateForm operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateForm.</param>
///
/// <returns>Returns a UpdateFormResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
UpdateFormResponse EndUpdateForm(IAsyncResult asyncResult);
#endregion
#region UpdateTheme
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
UpdateThemeResponse UpdateTheme(UpdateThemeRequest request);
/// <summary>
/// Initiates the asynchronous execution of the UpdateTheme operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme operation on AmazonAmplifyUIBuilderClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateTheme
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
IAsyncResult BeginUpdateTheme(UpdateThemeRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the UpdateTheme operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateTheme.</param>
///
/// <returns>Returns a UpdateThemeResult from AmplifyUIBuilder.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
UpdateThemeResponse EndUpdateTheme(IAsyncResult asyncResult);
#endregion
}
} | 1,271 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations;
using Amazon.AmplifyUIBuilder.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Implementation for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonAmplifyUIBuilderClient : AmazonServiceClient, IAmazonAmplifyUIBuilder
{
private static IServiceMetadata serviceMetadata = new AmazonAmplifyUIBuilderMetadata();
private IAmplifyUIBuilderPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAmplifyUIBuilderPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AmplifyUIBuilderPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAmplifyUIBuilderClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig()) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AmazonAmplifyUIBuilderConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials)
: this(credentials, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, AmazonAmplifyUIBuilderConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAmplifyUIBuilderEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateComponent
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return InvokeAsync<CreateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region CreateForm
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual CreateFormResponse CreateForm(CreateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return Invoke<CreateFormResponse>(request, options);
}
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual Task<CreateFormResponse> CreateFormAsync(CreateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return InvokeAsync<CreateFormResponse>(request, options, cancellationToken);
}
#endregion
#region CreateTheme
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual CreateThemeResponse CreateTheme(CreateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return Invoke<CreateThemeResponse>(request, options);
}
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual Task<CreateThemeResponse> CreateThemeAsync(CreateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return InvokeAsync<CreateThemeResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteComponent
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return InvokeAsync<DeleteComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteForm
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual DeleteFormResponse DeleteForm(DeleteFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return Invoke<DeleteFormResponse>(request, options);
}
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual Task<DeleteFormResponse> DeleteFormAsync(DeleteFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return InvokeAsync<DeleteFormResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteTheme
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual DeleteThemeResponse DeleteTheme(DeleteThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return Invoke<DeleteThemeResponse>(request, options);
}
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual Task<DeleteThemeResponse> DeleteThemeAsync(DeleteThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return InvokeAsync<DeleteThemeResponse>(request, options, cancellationToken);
}
#endregion
#region ExchangeCodeForToken
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return Invoke<ExchangeCodeForTokenResponse>(request, options);
}
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual Task<ExchangeCodeForTokenResponse> ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return InvokeAsync<ExchangeCodeForTokenResponse>(request, options, cancellationToken);
}
#endregion
#region ExportComponents
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual ExportComponentsResponse ExportComponents(ExportComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return Invoke<ExportComponentsResponse>(request, options);
}
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual Task<ExportComponentsResponse> ExportComponentsAsync(ExportComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ExportComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ExportForms
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual ExportFormsResponse ExportForms(ExportFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return Invoke<ExportFormsResponse>(request, options);
}
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual Task<ExportFormsResponse> ExportFormsAsync(ExportFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return InvokeAsync<ExportFormsResponse>(request, options, cancellationToken);
}
#endregion
#region ExportThemes
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual ExportThemesResponse ExportThemes(ExportThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return Invoke<ExportThemesResponse>(request, options);
}
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual Task<ExportThemesResponse> ExportThemesAsync(ExportThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return InvokeAsync<ExportThemesResponse>(request, options, cancellationToken);
}
#endregion
#region GetCodegenJob
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return Invoke<GetCodegenJobResponse>(request, options);
}
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual Task<GetCodegenJobResponse> GetCodegenJobAsync(GetCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return InvokeAsync<GetCodegenJobResponse>(request, options, cancellationToken);
}
#endregion
#region GetComponent
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual GetComponentResponse GetComponent(GetComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return Invoke<GetComponentResponse>(request, options);
}
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual Task<GetComponentResponse> GetComponentAsync(GetComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return InvokeAsync<GetComponentResponse>(request, options, cancellationToken);
}
#endregion
#region GetForm
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual GetFormResponse GetForm(GetFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return Invoke<GetFormResponse>(request, options);
}
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual Task<GetFormResponse> GetFormAsync(GetFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return InvokeAsync<GetFormResponse>(request, options, cancellationToken);
}
#endregion
#region GetMetadata
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual GetMetadataResponse GetMetadata(GetMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return Invoke<GetMetadataResponse>(request, options);
}
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual Task<GetMetadataResponse> GetMetadataAsync(GetMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return InvokeAsync<GetMetadataResponse>(request, options, cancellationToken);
}
#endregion
#region GetTheme
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual GetThemeResponse GetTheme(GetThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return Invoke<GetThemeResponse>(request, options);
}
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual Task<GetThemeResponse> GetThemeAsync(GetThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return InvokeAsync<GetThemeResponse>(request, options, cancellationToken);
}
#endregion
#region ListCodegenJobs
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return Invoke<ListCodegenJobsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual Task<ListCodegenJobsResponse> ListCodegenJobsAsync(ListCodegenJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return InvokeAsync<ListCodegenJobsResponse>(request, options, cancellationToken);
}
#endregion
#region ListComponents
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ListComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ListForms
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual ListFormsResponse ListForms(ListFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return Invoke<ListFormsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual Task<ListFormsResponse> ListFormsAsync(ListFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return InvokeAsync<ListFormsResponse>(request, options, cancellationToken);
}
#endregion
#region ListThemes
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual ListThemesResponse ListThemes(ListThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return Invoke<ListThemesResponse>(request, options);
}
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual Task<ListThemesResponse> ListThemesAsync(ListThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return InvokeAsync<ListThemesResponse>(request, options, cancellationToken);
}
#endregion
#region PutMetadataFlag
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return Invoke<PutMetadataFlagResponse>(request, options);
}
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual Task<PutMetadataFlagResponse> PutMetadataFlagAsync(PutMetadataFlagRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return InvokeAsync<PutMetadataFlagResponse>(request, options, cancellationToken);
}
#endregion
#region RefreshToken
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual RefreshTokenResponse RefreshToken(RefreshTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return Invoke<RefreshTokenResponse>(request, options);
}
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual Task<RefreshTokenResponse> RefreshTokenAsync(RefreshTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return InvokeAsync<RefreshTokenResponse>(request, options, cancellationToken);
}
#endregion
#region StartCodegenJob
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return Invoke<StartCodegenJobResponse>(request, options);
}
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual Task<StartCodegenJobResponse> StartCodegenJobAsync(StartCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return InvokeAsync<StartCodegenJobResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateComponent
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateForm
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual UpdateFormResponse UpdateForm(UpdateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return Invoke<UpdateFormResponse>(request, options);
}
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual Task<UpdateFormResponse> UpdateFormAsync(UpdateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFormResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateTheme
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual UpdateThemeResponse UpdateTheme(UpdateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return Invoke<UpdateThemeResponse>(request, options);
}
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual Task<UpdateThemeResponse> UpdateThemeAsync(UpdateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return InvokeAsync<UpdateThemeResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,720 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AmplifyUIBuilder.Model;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Interface for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonAmplifyUIBuilder : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAmplifyUIBuilderPaginatorFactory Paginators { get; }
#region CreateComponent
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
CreateComponentResponse CreateComponent(CreateComponentRequest request);
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateForm
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
CreateFormResponse CreateForm(CreateFormRequest request);
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
Task<CreateFormResponse> CreateFormAsync(CreateFormRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateTheme
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
CreateThemeResponse CreateTheme(CreateThemeRequest request);
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
Task<CreateThemeResponse> CreateThemeAsync(CreateThemeRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteComponent
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
DeleteComponentResponse DeleteComponent(DeleteComponentRequest request);
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteForm
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
DeleteFormResponse DeleteForm(DeleteFormRequest request);
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
Task<DeleteFormResponse> DeleteFormAsync(DeleteFormRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteTheme
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
DeleteThemeResponse DeleteTheme(DeleteThemeRequest request);
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
Task<DeleteThemeResponse> DeleteThemeAsync(DeleteThemeRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExchangeCodeForToken
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request);
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
Task<ExchangeCodeForTokenResponse> ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportComponents
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
ExportComponentsResponse ExportComponents(ExportComponentsRequest request);
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
Task<ExportComponentsResponse> ExportComponentsAsync(ExportComponentsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportForms
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
ExportFormsResponse ExportForms(ExportFormsRequest request);
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
Task<ExportFormsResponse> ExportFormsAsync(ExportFormsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportThemes
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
ExportThemesResponse ExportThemes(ExportThemesRequest request);
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
Task<ExportThemesResponse> ExportThemesAsync(ExportThemesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCodegenJob
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request);
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
Task<GetCodegenJobResponse> GetCodegenJobAsync(GetCodegenJobRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetComponent
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
GetComponentResponse GetComponent(GetComponentRequest request);
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
Task<GetComponentResponse> GetComponentAsync(GetComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetForm
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
GetFormResponse GetForm(GetFormRequest request);
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
Task<GetFormResponse> GetFormAsync(GetFormRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetMetadata
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
GetMetadataResponse GetMetadata(GetMetadataRequest request);
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
Task<GetMetadataResponse> GetMetadataAsync(GetMetadataRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetTheme
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
GetThemeResponse GetTheme(GetThemeRequest request);
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
Task<GetThemeResponse> GetThemeAsync(GetThemeRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListCodegenJobs
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request);
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
Task<ListCodegenJobsResponse> ListCodegenJobsAsync(ListCodegenJobsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListComponents
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
ListComponentsResponse ListComponents(ListComponentsRequest request);
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListForms
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
ListFormsResponse ListForms(ListFormsRequest request);
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
Task<ListFormsResponse> ListFormsAsync(ListFormsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListThemes
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
ListThemesResponse ListThemes(ListThemesRequest request);
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
Task<ListThemesResponse> ListThemesAsync(ListThemesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutMetadataFlag
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request);
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
Task<PutMetadataFlagResponse> PutMetadataFlagAsync(PutMetadataFlagRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RefreshToken
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
RefreshTokenResponse RefreshToken(RefreshTokenRequest request);
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
Task<RefreshTokenResponse> RefreshTokenAsync(RefreshTokenRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartCodegenJob
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request);
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
Task<StartCodegenJobResponse> StartCodegenJobAsync(StartCodegenJobRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponent
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
UpdateComponentResponse UpdateComponent(UpdateComponentRequest request);
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateForm
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
UpdateFormResponse UpdateForm(UpdateFormRequest request);
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
Task<UpdateFormResponse> UpdateFormAsync(UpdateFormRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateTheme
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
UpdateThemeResponse UpdateTheme(UpdateThemeRequest request);
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
Task<UpdateThemeResponse> UpdateThemeAsync(UpdateThemeRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 1,174 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AmplifyUIBuilder.Model;
using Amazon.AmplifyUIBuilder.Model.Internal.MarshallTransformations;
using Amazon.AmplifyUIBuilder.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Implementation for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial class AmazonAmplifyUIBuilderClient : AmazonServiceClient, IAmazonAmplifyUIBuilder
{
private static IServiceMetadata serviceMetadata = new AmazonAmplifyUIBuilderMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAmplifyUIBuilderClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig()) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AmazonAmplifyUIBuilderConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials)
: this(credentials, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Credentials and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(AWSCredentials credentials, AmazonAmplifyUIBuilderConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAmplifyUIBuilderConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig())
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAmplifyUIBuilderConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAmplifyUIBuilderClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAmplifyUIBuilderClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAmplifyUIBuilderClient Configuration Object</param>
public AmazonAmplifyUIBuilderClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAmplifyUIBuilderConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAmplifyUIBuilderPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAmplifyUIBuilderPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AmplifyUIBuilderPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAmplifyUIBuilderEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region CreateComponent
internal virtual CreateComponentResponse CreateComponent(CreateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return Invoke<CreateComponentResponse>(request, options);
}
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
public virtual Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance;
return InvokeAsync<CreateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region CreateForm
internal virtual CreateFormResponse CreateForm(CreateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return Invoke<CreateFormResponse>(request, options);
}
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
public virtual Task<CreateFormResponse> CreateFormAsync(CreateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFormResponseUnmarshaller.Instance;
return InvokeAsync<CreateFormResponse>(request, options, cancellationToken);
}
#endregion
#region CreateTheme
internal virtual CreateThemeResponse CreateTheme(CreateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return Invoke<CreateThemeResponse>(request, options);
}
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
public virtual Task<CreateThemeResponse> CreateThemeAsync(CreateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateThemeResponseUnmarshaller.Instance;
return InvokeAsync<CreateThemeResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteComponent
internal virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return Invoke<DeleteComponentResponse>(request, options);
}
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
public virtual Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance;
return InvokeAsync<DeleteComponentResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteForm
internal virtual DeleteFormResponse DeleteForm(DeleteFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return Invoke<DeleteFormResponse>(request, options);
}
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
public virtual Task<DeleteFormResponse> DeleteFormAsync(DeleteFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFormResponseUnmarshaller.Instance;
return InvokeAsync<DeleteFormResponse>(request, options, cancellationToken);
}
#endregion
#region DeleteTheme
internal virtual DeleteThemeResponse DeleteTheme(DeleteThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return Invoke<DeleteThemeResponse>(request, options);
}
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
public virtual Task<DeleteThemeResponse> DeleteThemeAsync(DeleteThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteThemeResponseUnmarshaller.Instance;
return InvokeAsync<DeleteThemeResponse>(request, options, cancellationToken);
}
#endregion
#region ExchangeCodeForToken
internal virtual ExchangeCodeForTokenResponse ExchangeCodeForToken(ExchangeCodeForTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return Invoke<ExchangeCodeForTokenResponse>(request, options);
}
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
public virtual Task<ExchangeCodeForTokenResponse> ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExchangeCodeForTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExchangeCodeForTokenResponseUnmarshaller.Instance;
return InvokeAsync<ExchangeCodeForTokenResponse>(request, options, cancellationToken);
}
#endregion
#region ExportComponents
internal virtual ExportComponentsResponse ExportComponents(ExportComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return Invoke<ExportComponentsResponse>(request, options);
}
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
public virtual Task<ExportComponentsResponse> ExportComponentsAsync(ExportComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ExportComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ExportForms
internal virtual ExportFormsResponse ExportForms(ExportFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return Invoke<ExportFormsResponse>(request, options);
}
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
public virtual Task<ExportFormsResponse> ExportFormsAsync(ExportFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportFormsResponseUnmarshaller.Instance;
return InvokeAsync<ExportFormsResponse>(request, options, cancellationToken);
}
#endregion
#region ExportThemes
internal virtual ExportThemesResponse ExportThemes(ExportThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return Invoke<ExportThemesResponse>(request, options);
}
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
public virtual Task<ExportThemesResponse> ExportThemesAsync(ExportThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportThemesResponseUnmarshaller.Instance;
return InvokeAsync<ExportThemesResponse>(request, options, cancellationToken);
}
#endregion
#region GetCodegenJob
internal virtual GetCodegenJobResponse GetCodegenJob(GetCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return Invoke<GetCodegenJobResponse>(request, options);
}
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
public virtual Task<GetCodegenJobResponse> GetCodegenJobAsync(GetCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetCodegenJobResponseUnmarshaller.Instance;
return InvokeAsync<GetCodegenJobResponse>(request, options, cancellationToken);
}
#endregion
#region GetComponent
internal virtual GetComponentResponse GetComponent(GetComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return Invoke<GetComponentResponse>(request, options);
}
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
public virtual Task<GetComponentResponse> GetComponentAsync(GetComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetComponentResponseUnmarshaller.Instance;
return InvokeAsync<GetComponentResponse>(request, options, cancellationToken);
}
#endregion
#region GetForm
internal virtual GetFormResponse GetForm(GetFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return Invoke<GetFormResponse>(request, options);
}
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
public virtual Task<GetFormResponse> GetFormAsync(GetFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFormResponseUnmarshaller.Instance;
return InvokeAsync<GetFormResponse>(request, options, cancellationToken);
}
#endregion
#region GetMetadata
internal virtual GetMetadataResponse GetMetadata(GetMetadataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return Invoke<GetMetadataResponse>(request, options);
}
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
public virtual Task<GetMetadataResponse> GetMetadataAsync(GetMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetMetadataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetMetadataResponseUnmarshaller.Instance;
return InvokeAsync<GetMetadataResponse>(request, options, cancellationToken);
}
#endregion
#region GetTheme
internal virtual GetThemeResponse GetTheme(GetThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return Invoke<GetThemeResponse>(request, options);
}
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
public virtual Task<GetThemeResponse> GetThemeAsync(GetThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetThemeResponseUnmarshaller.Instance;
return InvokeAsync<GetThemeResponse>(request, options, cancellationToken);
}
#endregion
#region ListCodegenJobs
internal virtual ListCodegenJobsResponse ListCodegenJobs(ListCodegenJobsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return Invoke<ListCodegenJobsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
public virtual Task<ListCodegenJobsResponse> ListCodegenJobsAsync(ListCodegenJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListCodegenJobsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListCodegenJobsResponseUnmarshaller.Instance;
return InvokeAsync<ListCodegenJobsResponse>(request, options, cancellationToken);
}
#endregion
#region ListComponents
internal virtual ListComponentsResponse ListComponents(ListComponentsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return Invoke<ListComponentsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
public virtual Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListComponentsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance;
return InvokeAsync<ListComponentsResponse>(request, options, cancellationToken);
}
#endregion
#region ListForms
internal virtual ListFormsResponse ListForms(ListFormsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return Invoke<ListFormsResponse>(request, options);
}
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
public virtual Task<ListFormsResponse> ListFormsAsync(ListFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListFormsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListFormsResponseUnmarshaller.Instance;
return InvokeAsync<ListFormsResponse>(request, options, cancellationToken);
}
#endregion
#region ListThemes
internal virtual ListThemesResponse ListThemes(ListThemesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return Invoke<ListThemesResponse>(request, options);
}
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
public virtual Task<ListThemesResponse> ListThemesAsync(ListThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListThemesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListThemesResponseUnmarshaller.Instance;
return InvokeAsync<ListThemesResponse>(request, options, cancellationToken);
}
#endregion
#region PutMetadataFlag
internal virtual PutMetadataFlagResponse PutMetadataFlag(PutMetadataFlagRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return Invoke<PutMetadataFlagResponse>(request, options);
}
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
public virtual Task<PutMetadataFlagResponse> PutMetadataFlagAsync(PutMetadataFlagRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutMetadataFlagRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutMetadataFlagResponseUnmarshaller.Instance;
return InvokeAsync<PutMetadataFlagResponse>(request, options, cancellationToken);
}
#endregion
#region RefreshToken
internal virtual RefreshTokenResponse RefreshToken(RefreshTokenRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return Invoke<RefreshTokenResponse>(request, options);
}
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
public virtual Task<RefreshTokenResponse> RefreshTokenAsync(RefreshTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTokenRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTokenResponseUnmarshaller.Instance;
return InvokeAsync<RefreshTokenResponse>(request, options, cancellationToken);
}
#endregion
#region StartCodegenJob
internal virtual StartCodegenJobResponse StartCodegenJob(StartCodegenJobRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return Invoke<StartCodegenJobResponse>(request, options);
}
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
public virtual Task<StartCodegenJobResponse> StartCodegenJobAsync(StartCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = StartCodegenJobRequestMarshaller.Instance;
options.ResponseUnmarshaller = StartCodegenJobResponseUnmarshaller.Instance;
return InvokeAsync<StartCodegenJobResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateComponent
internal virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return Invoke<UpdateComponentResponse>(request, options);
}
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
public virtual Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance;
return InvokeAsync<UpdateComponentResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateForm
internal virtual UpdateFormResponse UpdateForm(UpdateFormRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return Invoke<UpdateFormResponse>(request, options);
}
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
public virtual Task<UpdateFormResponse> UpdateFormAsync(UpdateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFormRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFormResponseUnmarshaller.Instance;
return InvokeAsync<UpdateFormResponse>(request, options, cancellationToken);
}
#endregion
#region UpdateTheme
internal virtual UpdateThemeResponse UpdateTheme(UpdateThemeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return Invoke<UpdateThemeResponse>(request, options);
}
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
public virtual Task<UpdateThemeResponse> UpdateThemeAsync(UpdateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateThemeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateThemeResponseUnmarshaller.Instance;
return InvokeAsync<UpdateThemeResponse>(request, options, cancellationToken);
}
#endregion
}
} | 1,344 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the amplifyuibuilder-2021-08-11.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AmplifyUIBuilder.Model;
namespace Amazon.AmplifyUIBuilder
{
/// <summary>
/// Interface for accessing AmplifyUIBuilder
///
/// The Amplify UI Builder API provides a programmatic interface for creating and configuring
/// user interface (UI) component libraries and themes for use in your Amplify applications.
/// You can then connect these UI components to an application's backend Amazon Web Services
/// resources.
///
///
/// <para>
/// You can also use the Amplify Studio visual designer to create UI components and model
/// data for an app. For more information, see <a href="https://docs.amplify.aws/console/adminui/intro">Introduction</a>
/// in the <i>Amplify Docs</i>.
/// </para>
///
/// <para>
/// The Amplify Framework is a comprehensive set of SDKs, libraries, tools, and documentation
/// for client app development. For more information, see the <a href="https://docs.amplify.aws/">Amplify
/// Framework</a>. For more information about deploying an Amplify application to Amazon
/// Web Services, see the <a href="https://docs.aws.amazon.com/amplify/latest/userguide/welcome.html">Amplify
/// User Guide</a>.
/// </para>
/// </summary>
public partial interface IAmazonAmplifyUIBuilder : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAmplifyUIBuilderPaginatorFactory Paginators { get; }
#endif
#region CreateComponent
/// <summary>
/// Creates a new component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateComponent">REST API Reference for CreateComponent Operation</seealso>
Task<CreateComponentResponse> CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateForm
/// <summary>
/// Creates a new form for an Amplify.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateForm">REST API Reference for CreateForm Operation</seealso>
Task<CreateFormResponse> CreateFormAsync(CreateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateTheme
/// <summary>
/// Creates a theme to apply to the components in an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ServiceQuotaExceededException">
/// You exceeded your service quota. Service quotas, also referred to as limits, are the
/// maximum number of service resources or operations for your Amazon Web Services account.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/CreateTheme">REST API Reference for CreateTheme Operation</seealso>
Task<CreateThemeResponse> CreateThemeAsync(CreateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteComponent
/// <summary>
/// Deletes a component from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteComponent">REST API Reference for DeleteComponent Operation</seealso>
Task<DeleteComponentResponse> DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteForm
/// <summary>
/// Deletes a form from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteForm">REST API Reference for DeleteForm Operation</seealso>
Task<DeleteFormResponse> DeleteFormAsync(DeleteFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DeleteTheme
/// <summary>
/// Deletes a theme from an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DeleteTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DeleteTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/DeleteTheme">REST API Reference for DeleteTheme Operation</seealso>
Task<DeleteThemeResponse> DeleteThemeAsync(DeleteThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExchangeCodeForToken
/// <summary>
/// Exchanges an access code for a token.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExchangeCodeForToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExchangeCodeForToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExchangeCodeForToken">REST API Reference for ExchangeCodeForToken Operation</seealso>
Task<ExchangeCodeForTokenResponse> ExchangeCodeForTokenAsync(ExchangeCodeForTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportComponents
/// <summary>
/// Exports component configurations to code that is ready to integrate into an Amplify
/// app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportComponents">REST API Reference for ExportComponents Operation</seealso>
Task<ExportComponentsResponse> ExportComponentsAsync(ExportComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportForms
/// <summary>
/// Exports form configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportForms">REST API Reference for ExportForms Operation</seealso>
Task<ExportFormsResponse> ExportFormsAsync(ExportFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ExportThemes
/// <summary>
/// Exports theme configurations to code that is ready to integrate into an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ExportThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ExportThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ExportThemes">REST API Reference for ExportThemes Operation</seealso>
Task<ExportThemesResponse> ExportThemesAsync(ExportThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetCodegenJob
/// <summary>
/// Returns an existing code generation job.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetCodegenJob">REST API Reference for GetCodegenJob Operation</seealso>
Task<GetCodegenJobResponse> GetCodegenJobAsync(GetCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetComponent
/// <summary>
/// Returns an existing component for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetComponent">REST API Reference for GetComponent Operation</seealso>
Task<GetComponentResponse> GetComponentAsync(GetComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetForm
/// <summary>
/// Returns an existing form for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetForm">REST API Reference for GetForm Operation</seealso>
Task<GetFormResponse> GetFormAsync(GetFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetMetadata
/// <summary>
/// Returns existing metadata for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetMetadata service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetMetadata service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetMetadata">REST API Reference for GetMetadata Operation</seealso>
Task<GetMetadataResponse> GetMetadataAsync(GetMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region GetTheme
/// <summary>
/// Returns an existing theme for an Amplify app.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the GetTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the GetTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceNotFoundException">
/// The requested resource does not exist, or access was denied.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/GetTheme">REST API Reference for GetTheme Operation</seealso>
Task<GetThemeResponse> GetThemeAsync(GetThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListCodegenJobs
/// <summary>
/// Retrieves a list of code generation jobs for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListCodegenJobs service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListCodegenJobs service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListCodegenJobs">REST API Reference for ListCodegenJobs Operation</seealso>
Task<ListCodegenJobsResponse> ListCodegenJobsAsync(ListCodegenJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListComponents
/// <summary>
/// Retrieves a list of components for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListComponents service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListComponents service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListComponents">REST API Reference for ListComponents Operation</seealso>
Task<ListComponentsResponse> ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListForms
/// <summary>
/// Retrieves a list of forms for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListForms service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListForms service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListForms">REST API Reference for ListForms Operation</seealso>
Task<ListFormsResponse> ListFormsAsync(ListFormsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ListThemes
/// <summary>
/// Retrieves a list of themes for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ListThemes service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ListThemes service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/ListThemes">REST API Reference for ListThemes Operation</seealso>
Task<ListThemesResponse> ListThemesAsync(ListThemesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region PutMetadataFlag
/// <summary>
/// Stores the metadata information about a feature on a form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the PutMetadataFlag service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the PutMetadataFlag service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.UnauthorizedException">
/// You don't have permission to perform this operation.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/PutMetadataFlag">REST API Reference for PutMetadataFlag Operation</seealso>
Task<PutMetadataFlagResponse> PutMetadataFlagAsync(PutMetadataFlagRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RefreshToken
/// <summary>
/// Refreshes a previously issued access token that might have expired.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshToken service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshToken service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/RefreshToken">REST API Reference for RefreshToken Operation</seealso>
Task<RefreshTokenResponse> RefreshTokenAsync(RefreshTokenRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region StartCodegenJob
/// <summary>
/// Starts a code generation job for for a specified Amplify app and backend environment.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the StartCodegenJob service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the StartCodegenJob service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ThrottlingException">
/// The request was denied due to request throttling.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/StartCodegenJob">REST API Reference for StartCodegenJob Operation</seealso>
Task<StartCodegenJobResponse> StartCodegenJobAsync(StartCodegenJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateComponent
/// <summary>
/// Updates an existing component.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateComponent service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateComponent service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateComponent">REST API Reference for UpdateComponent Operation</seealso>
Task<UpdateComponentResponse> UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateForm
/// <summary>
/// Updates an existing form.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateForm service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateForm service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateForm">REST API Reference for UpdateForm Operation</seealso>
Task<UpdateFormResponse> UpdateFormAsync(UpdateFormRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region UpdateTheme
/// <summary>
/// Updates an existing theme.
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the UpdateTheme service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the UpdateTheme service method, as returned by AmplifyUIBuilder.</returns>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InternalServerException">
/// An internal error has occurred. Please retry your request.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.InvalidParameterException">
/// An invalid or out-of-range value was supplied for the input parameter.
/// </exception>
/// <exception cref="Amazon.AmplifyUIBuilder.Model.ResourceConflictException">
/// The resource specified in the request conflicts with an existing resource.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/amplifyuibuilder-2021-08-11/UpdateTheme">REST API Reference for UpdateTheme Operation</seealso>
Task<UpdateThemeResponse> UpdateThemeAsync(UpdateThemeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
} | 719 |
aws-sdk-net | aws | C# | using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.AmplifyUIBuilder")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Amplify UI Builder. This release introduces the actions and data types for the new Amplify UI Builder API. The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in Amplify applications.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Amplify UI Builder. This release introduces the actions and data types for the new Amplify UI Builder API. The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in Amplify applications.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Amplify UI Builder. This release introduces the actions and data types for the new Amplify UI Builder API. The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in Amplify applications.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Amplify UI Builder. This release introduces the actions and data types for the new Amplify UI Builder API. The Amplify UI Builder API provides a programmatic interface for creating and configuring user interface (UI) component libraries and themes for use in Amplify applications.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.102.3")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif | 51 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
using System.Diagnostics.CodeAnalysis;
// Nested generics
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.GetDeploymentResponse.#ApiSummary")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.Deployment.#ApiSummary")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.CreateDeploymentResponse.#ApiSummary")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.UpdateDeploymentResponse.#ApiSummary")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.TestInvokeAuthorizerResponse.#Authorization")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.UpdateUsageResponse.#Items")]
[module: SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures", Scope="member", Target="Amazon.APIGateway.Model.GetUsageResponse.#Items")]
// Types names matching namespaces
[module: SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope="type", Target="Amazon.APIGateway.Model.Model")]
[module: SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Scope="type", Target="Amazon.APIGateway.Model.Deployment")]
| 32 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using System;
#pragma warning disable 1591
namespace Amazon.APIGateway.Internal
{
public class AmazonAPIGatewayPostMarshallHandler : PipelineHandler
{
/// <summary>
/// Calls pre invoke logic before calling the next handler
/// in the pipeline.
/// </summary>
/// <param name="executionContext">The execution context which contains both the
/// requests and response context.</param>
public override void InvokeSync(IExecutionContext executionContext)
{
PreInvoke(executionContext);
base.InvokeSync(executionContext);
}
#if AWS_ASYNC_API
/// <summary>
/// Calls pre invoke logic before calling the next handler
/// in the pipeline.
/// </summary>
/// <typeparam name="T">The response type for the current request.</typeparam>
/// <param name="executionContext">The execution context, it contains the
/// request and response context.</param>
/// <returns>A task that represents the asynchronous operation.</returns>
public override System.Threading.Tasks.Task<T> InvokeAsync<T>(IExecutionContext executionContext)
{
PreInvoke(executionContext);
return base.InvokeAsync<T>(executionContext);
}
#elif AWS_APM_API
/// <summary>
/// Calls pre invoke logic before calling the next handler
/// in the pipeline.
/// </summary>
/// <param name="executionContext">The execution context which contains both the
/// requests and response context.</param>
/// <returns>IAsyncResult which represent an async operation.</returns>
public override IAsyncResult InvokeAsync(IAsyncExecutionContext executionContext)
{
PreInvoke(ExecutionContext.CreateFromAsyncContext(executionContext));
return base.InvokeAsync(executionContext);
}
#endif
protected virtual void PreInvoke(IExecutionContext executionContext)
{
executionContext.RequestContext.Request.Headers["Accept"] = "application/json";
}
}
}
| 75 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.APIGateway.Internal;
namespace Amazon.APIGateway
{
/// <summary>
/// Configuration for accessing Amazon APIGateway service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonAPIGatewayConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.100.147");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonAPIGatewayConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonAPIGatewayDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "apigateway";
this.EndpointProvider = new AmazonAPIGatewayEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "apigateway";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2015-07-09";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.APIGateway
{
/// <summary>
/// Configuration for accessing Amazon APIGateway service
/// </summary>
public static class AmazonAPIGatewayDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// APIGateway
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
} | 146 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.APIGateway.Endpoints
{
/// <summary>
/// Contains parameters used for resolving APIGateway endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal APIGatewayEndpointProvider and APIGatewayEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class APIGatewayEndpointParameters : EndpointParameters
{
/// <summary>
/// APIGatewayEndpointParameters constructor
/// </summary>
public APIGatewayEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
} | 78 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.APIGateway
{
///<summary>
/// Common exception for the APIGateway service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonAPIGatewayException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonAPIGatewayException
/// </summary>
/// <param name="message"></param>
public AmazonAPIGatewayException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonAPIGatewayException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonAPIGatewayException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAPIGatewayException
/// </summary>
/// <param name="innerException"></param>
public AmazonAPIGatewayException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonAPIGatewayException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAPIGatewayException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonAPIGatewayException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonAPIGatewayException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonAPIGatewayException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonAPIGatewayException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
} | 105 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.APIGateway
{
/// <summary>
/// Constants used for properties of type ApiKeysFormat.
/// </summary>
public class ApiKeysFormat : ConstantClass
{
/// <summary>
/// Constant Csv for ApiKeysFormat
/// </summary>
public static readonly ApiKeysFormat Csv = new ApiKeysFormat("csv");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ApiKeysFormat(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ApiKeysFormat FindValue(string value)
{
return FindValue<ApiKeysFormat>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ApiKeysFormat(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ApiKeySourceType.
/// </summary>
public class ApiKeySourceType : ConstantClass
{
/// <summary>
/// Constant AUTHORIZER for ApiKeySourceType
/// </summary>
public static readonly ApiKeySourceType AUTHORIZER = new ApiKeySourceType("AUTHORIZER");
/// <summary>
/// Constant HEADER for ApiKeySourceType
/// </summary>
public static readonly ApiKeySourceType HEADER = new ApiKeySourceType("HEADER");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ApiKeySourceType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ApiKeySourceType FindValue(string value)
{
return FindValue<ApiKeySourceType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ApiKeySourceType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type AuthorizerType.
/// </summary>
public class AuthorizerType : ConstantClass
{
/// <summary>
/// Constant COGNITO_USER_POOLS for AuthorizerType
/// </summary>
public static readonly AuthorizerType COGNITO_USER_POOLS = new AuthorizerType("COGNITO_USER_POOLS");
/// <summary>
/// Constant REQUEST for AuthorizerType
/// </summary>
public static readonly AuthorizerType REQUEST = new AuthorizerType("REQUEST");
/// <summary>
/// Constant TOKEN for AuthorizerType
/// </summary>
public static readonly AuthorizerType TOKEN = new AuthorizerType("TOKEN");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public AuthorizerType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static AuthorizerType FindValue(string value)
{
return FindValue<AuthorizerType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator AuthorizerType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CacheClusterSize.
/// </summary>
public class CacheClusterSize : ConstantClass
{
/// <summary>
/// Constant GB_0_5 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_0_5 = new CacheClusterSize("0.5");
/// <summary>
/// Constant GB_1_6 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_1_6 = new CacheClusterSize("1.6");
/// <summary>
/// Constant GB_118 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_118 = new CacheClusterSize("118");
/// <summary>
/// Constant GB_13_5 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_13_5 = new CacheClusterSize("13.5");
/// <summary>
/// Constant GB_237 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_237 = new CacheClusterSize("237");
/// <summary>
/// Constant GB_28_4 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_28_4 = new CacheClusterSize("28.4");
/// <summary>
/// Constant GB_58_2 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_58_2 = new CacheClusterSize("58.2");
/// <summary>
/// Constant GB_6_1 for CacheClusterSize
/// </summary>
public static readonly CacheClusterSize GB_6_1 = new CacheClusterSize("6.1");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CacheClusterSize(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CacheClusterSize FindValue(string value)
{
return FindValue<CacheClusterSize>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CacheClusterSize(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CacheClusterStatus.
/// </summary>
public class CacheClusterStatus : ConstantClass
{
/// <summary>
/// Constant AVAILABLE for CacheClusterStatus
/// </summary>
public static readonly CacheClusterStatus AVAILABLE = new CacheClusterStatus("AVAILABLE");
/// <summary>
/// Constant CREATE_IN_PROGRESS for CacheClusterStatus
/// </summary>
public static readonly CacheClusterStatus CREATE_IN_PROGRESS = new CacheClusterStatus("CREATE_IN_PROGRESS");
/// <summary>
/// Constant DELETE_IN_PROGRESS for CacheClusterStatus
/// </summary>
public static readonly CacheClusterStatus DELETE_IN_PROGRESS = new CacheClusterStatus("DELETE_IN_PROGRESS");
/// <summary>
/// Constant FLUSH_IN_PROGRESS for CacheClusterStatus
/// </summary>
public static readonly CacheClusterStatus FLUSH_IN_PROGRESS = new CacheClusterStatus("FLUSH_IN_PROGRESS");
/// <summary>
/// Constant NOT_AVAILABLE for CacheClusterStatus
/// </summary>
public static readonly CacheClusterStatus NOT_AVAILABLE = new CacheClusterStatus("NOT_AVAILABLE");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CacheClusterStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CacheClusterStatus FindValue(string value)
{
return FindValue<CacheClusterStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CacheClusterStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ConnectionType.
/// </summary>
public class ConnectionType : ConstantClass
{
/// <summary>
/// Constant INTERNET for ConnectionType
/// </summary>
public static readonly ConnectionType INTERNET = new ConnectionType("INTERNET");
/// <summary>
/// Constant VPC_LINK for ConnectionType
/// </summary>
public static readonly ConnectionType VPC_LINK = new ConnectionType("VPC_LINK");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ConnectionType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ConnectionType FindValue(string value)
{
return FindValue<ConnectionType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ConnectionType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ContentHandlingStrategy.
/// </summary>
public class ContentHandlingStrategy : ConstantClass
{
/// <summary>
/// Constant CONVERT_TO_BINARY for ContentHandlingStrategy
/// </summary>
public static readonly ContentHandlingStrategy CONVERT_TO_BINARY = new ContentHandlingStrategy("CONVERT_TO_BINARY");
/// <summary>
/// Constant CONVERT_TO_TEXT for ContentHandlingStrategy
/// </summary>
public static readonly ContentHandlingStrategy CONVERT_TO_TEXT = new ContentHandlingStrategy("CONVERT_TO_TEXT");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ContentHandlingStrategy(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ContentHandlingStrategy FindValue(string value)
{
return FindValue<ContentHandlingStrategy>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ContentHandlingStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DocumentationPartType.
/// </summary>
public class DocumentationPartType : ConstantClass
{
/// <summary>
/// Constant API for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType API = new DocumentationPartType("API");
/// <summary>
/// Constant AUTHORIZER for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType AUTHORIZER = new DocumentationPartType("AUTHORIZER");
/// <summary>
/// Constant METHOD for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType METHOD = new DocumentationPartType("METHOD");
/// <summary>
/// Constant MODEL for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType MODEL = new DocumentationPartType("MODEL");
/// <summary>
/// Constant PATH_PARAMETER for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType PATH_PARAMETER = new DocumentationPartType("PATH_PARAMETER");
/// <summary>
/// Constant QUERY_PARAMETER for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType QUERY_PARAMETER = new DocumentationPartType("QUERY_PARAMETER");
/// <summary>
/// Constant REQUEST_BODY for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType REQUEST_BODY = new DocumentationPartType("REQUEST_BODY");
/// <summary>
/// Constant REQUEST_HEADER for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType REQUEST_HEADER = new DocumentationPartType("REQUEST_HEADER");
/// <summary>
/// Constant RESOURCE for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType RESOURCE = new DocumentationPartType("RESOURCE");
/// <summary>
/// Constant RESPONSE for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType RESPONSE = new DocumentationPartType("RESPONSE");
/// <summary>
/// Constant RESPONSE_BODY for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType RESPONSE_BODY = new DocumentationPartType("RESPONSE_BODY");
/// <summary>
/// Constant RESPONSE_HEADER for DocumentationPartType
/// </summary>
public static readonly DocumentationPartType RESPONSE_HEADER = new DocumentationPartType("RESPONSE_HEADER");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public DocumentationPartType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static DocumentationPartType FindValue(string value)
{
return FindValue<DocumentationPartType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator DocumentationPartType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type DomainNameStatus.
/// </summary>
public class DomainNameStatus : ConstantClass
{
/// <summary>
/// Constant AVAILABLE for DomainNameStatus
/// </summary>
public static readonly DomainNameStatus AVAILABLE = new DomainNameStatus("AVAILABLE");
/// <summary>
/// Constant PENDING for DomainNameStatus
/// </summary>
public static readonly DomainNameStatus PENDING = new DomainNameStatus("PENDING");
/// <summary>
/// Constant PENDING_CERTIFICATE_REIMPORT for DomainNameStatus
/// </summary>
public static readonly DomainNameStatus PENDING_CERTIFICATE_REIMPORT = new DomainNameStatus("PENDING_CERTIFICATE_REIMPORT");
/// <summary>
/// Constant PENDING_OWNERSHIP_VERIFICATION for DomainNameStatus
/// </summary>
public static readonly DomainNameStatus PENDING_OWNERSHIP_VERIFICATION = new DomainNameStatus("PENDING_OWNERSHIP_VERIFICATION");
/// <summary>
/// Constant UPDATING for DomainNameStatus
/// </summary>
public static readonly DomainNameStatus UPDATING = new DomainNameStatus("UPDATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public DomainNameStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static DomainNameStatus FindValue(string value)
{
return FindValue<DomainNameStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator DomainNameStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type EndpointType.
/// </summary>
public class EndpointType : ConstantClass
{
/// <summary>
/// Constant EDGE for EndpointType
/// </summary>
public static readonly EndpointType EDGE = new EndpointType("EDGE");
/// <summary>
/// Constant PRIVATE for EndpointType
/// </summary>
public static readonly EndpointType PRIVATE = new EndpointType("PRIVATE");
/// <summary>
/// Constant REGIONAL for EndpointType
/// </summary>
public static readonly EndpointType REGIONAL = new EndpointType("REGIONAL");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public EndpointType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static EndpointType FindValue(string value)
{
return FindValue<EndpointType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator EndpointType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type GatewayResponseType.
/// </summary>
public class GatewayResponseType : ConstantClass
{
/// <summary>
/// Constant ACCESS_DENIED for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType ACCESS_DENIED = new GatewayResponseType("ACCESS_DENIED");
/// <summary>
/// Constant API_CONFIGURATION_ERROR for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType API_CONFIGURATION_ERROR = new GatewayResponseType("API_CONFIGURATION_ERROR");
/// <summary>
/// Constant AUTHORIZER_CONFIGURATION_ERROR for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType AUTHORIZER_CONFIGURATION_ERROR = new GatewayResponseType("AUTHORIZER_CONFIGURATION_ERROR");
/// <summary>
/// Constant AUTHORIZER_FAILURE for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType AUTHORIZER_FAILURE = new GatewayResponseType("AUTHORIZER_FAILURE");
/// <summary>
/// Constant BAD_REQUEST_BODY for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType BAD_REQUEST_BODY = new GatewayResponseType("BAD_REQUEST_BODY");
/// <summary>
/// Constant BAD_REQUEST_PARAMETERS for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType BAD_REQUEST_PARAMETERS = new GatewayResponseType("BAD_REQUEST_PARAMETERS");
/// <summary>
/// Constant DEFAULT_4XX for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType DEFAULT_4XX = new GatewayResponseType("DEFAULT_4XX");
/// <summary>
/// Constant DEFAULT_5XX for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType DEFAULT_5XX = new GatewayResponseType("DEFAULT_5XX");
/// <summary>
/// Constant EXPIRED_TOKEN for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType EXPIRED_TOKEN = new GatewayResponseType("EXPIRED_TOKEN");
/// <summary>
/// Constant INTEGRATION_FAILURE for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType INTEGRATION_FAILURE = new GatewayResponseType("INTEGRATION_FAILURE");
/// <summary>
/// Constant INTEGRATION_TIMEOUT for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType INTEGRATION_TIMEOUT = new GatewayResponseType("INTEGRATION_TIMEOUT");
/// <summary>
/// Constant INVALID_API_KEY for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType INVALID_API_KEY = new GatewayResponseType("INVALID_API_KEY");
/// <summary>
/// Constant INVALID_SIGNATURE for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType INVALID_SIGNATURE = new GatewayResponseType("INVALID_SIGNATURE");
/// <summary>
/// Constant MISSING_AUTHENTICATION_TOKEN for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType MISSING_AUTHENTICATION_TOKEN = new GatewayResponseType("MISSING_AUTHENTICATION_TOKEN");
/// <summary>
/// Constant QUOTA_EXCEEDED for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType QUOTA_EXCEEDED = new GatewayResponseType("QUOTA_EXCEEDED");
/// <summary>
/// Constant REQUEST_TOO_LARGE for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType REQUEST_TOO_LARGE = new GatewayResponseType("REQUEST_TOO_LARGE");
/// <summary>
/// Constant RESOURCE_NOT_FOUND for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType RESOURCE_NOT_FOUND = new GatewayResponseType("RESOURCE_NOT_FOUND");
/// <summary>
/// Constant THROTTLED for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType THROTTLED = new GatewayResponseType("THROTTLED");
/// <summary>
/// Constant UNAUTHORIZED for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType UNAUTHORIZED = new GatewayResponseType("UNAUTHORIZED");
/// <summary>
/// Constant UNSUPPORTED_MEDIA_TYPE for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType UNSUPPORTED_MEDIA_TYPE = new GatewayResponseType("UNSUPPORTED_MEDIA_TYPE");
/// <summary>
/// Constant WAF_FILTERED for GatewayResponseType
/// </summary>
public static readonly GatewayResponseType WAF_FILTERED = new GatewayResponseType("WAF_FILTERED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public GatewayResponseType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static GatewayResponseType FindValue(string value)
{
return FindValue<GatewayResponseType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator GatewayResponseType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type IntegrationType.
/// </summary>
public class IntegrationType : ConstantClass
{
/// <summary>
/// Constant AWS for IntegrationType
/// </summary>
public static readonly IntegrationType AWS = new IntegrationType("AWS");
/// <summary>
/// Constant AWS_PROXY for IntegrationType
/// </summary>
public static readonly IntegrationType AWS_PROXY = new IntegrationType("AWS_PROXY");
/// <summary>
/// Constant HTTP for IntegrationType
/// </summary>
public static readonly IntegrationType HTTP = new IntegrationType("HTTP");
/// <summary>
/// Constant HTTP_PROXY for IntegrationType
/// </summary>
public static readonly IntegrationType HTTP_PROXY = new IntegrationType("HTTP_PROXY");
/// <summary>
/// Constant MOCK for IntegrationType
/// </summary>
public static readonly IntegrationType MOCK = new IntegrationType("MOCK");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public IntegrationType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static IntegrationType FindValue(string value)
{
return FindValue<IntegrationType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator IntegrationType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LocationStatusType.
/// </summary>
public class LocationStatusType : ConstantClass
{
/// <summary>
/// Constant DOCUMENTED for LocationStatusType
/// </summary>
public static readonly LocationStatusType DOCUMENTED = new LocationStatusType("DOCUMENTED");
/// <summary>
/// Constant UNDOCUMENTED for LocationStatusType
/// </summary>
public static readonly LocationStatusType UNDOCUMENTED = new LocationStatusType("UNDOCUMENTED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LocationStatusType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LocationStatusType FindValue(string value)
{
return FindValue<LocationStatusType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LocationStatusType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type Op.
/// </summary>
public class Op : ConstantClass
{
/// <summary>
/// Constant Add for Op
/// </summary>
public static readonly Op Add = new Op("add");
/// <summary>
/// Constant Copy for Op
/// </summary>
public static readonly Op Copy = new Op("copy");
/// <summary>
/// Constant Move for Op
/// </summary>
public static readonly Op Move = new Op("move");
/// <summary>
/// Constant Remove for Op
/// </summary>
public static readonly Op Remove = new Op("remove");
/// <summary>
/// Constant Replace for Op
/// </summary>
public static readonly Op Replace = new Op("replace");
/// <summary>
/// Constant Test for Op
/// </summary>
public static readonly Op Test = new Op("test");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public Op(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static Op FindValue(string value)
{
return FindValue<Op>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator Op(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type PutMode.
/// </summary>
public class PutMode : ConstantClass
{
/// <summary>
/// Constant Merge for PutMode
/// </summary>
public static readonly PutMode Merge = new PutMode("merge");
/// <summary>
/// Constant Overwrite for PutMode
/// </summary>
public static readonly PutMode Overwrite = new PutMode("overwrite");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public PutMode(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static PutMode FindValue(string value)
{
return FindValue<PutMode>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator PutMode(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type QuotaPeriodType.
/// </summary>
public class QuotaPeriodType : ConstantClass
{
/// <summary>
/// Constant DAY for QuotaPeriodType
/// </summary>
public static readonly QuotaPeriodType DAY = new QuotaPeriodType("DAY");
/// <summary>
/// Constant MONTH for QuotaPeriodType
/// </summary>
public static readonly QuotaPeriodType MONTH = new QuotaPeriodType("MONTH");
/// <summary>
/// Constant WEEK for QuotaPeriodType
/// </summary>
public static readonly QuotaPeriodType WEEK = new QuotaPeriodType("WEEK");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public QuotaPeriodType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static QuotaPeriodType FindValue(string value)
{
return FindValue<QuotaPeriodType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator QuotaPeriodType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type SecurityPolicy.
/// </summary>
public class SecurityPolicy : ConstantClass
{
/// <summary>
/// Constant TLS_1_0 for SecurityPolicy
/// </summary>
public static readonly SecurityPolicy TLS_1_0 = new SecurityPolicy("TLS_1_0");
/// <summary>
/// Constant TLS_1_2 for SecurityPolicy
/// </summary>
public static readonly SecurityPolicy TLS_1_2 = new SecurityPolicy("TLS_1_2");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public SecurityPolicy(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static SecurityPolicy FindValue(string value)
{
return FindValue<SecurityPolicy>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator SecurityPolicy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type UnauthorizedCacheControlHeaderStrategy.
/// </summary>
public class UnauthorizedCacheControlHeaderStrategy : ConstantClass
{
/// <summary>
/// Constant FAIL_WITH_403 for UnauthorizedCacheControlHeaderStrategy
/// </summary>
public static readonly UnauthorizedCacheControlHeaderStrategy FAIL_WITH_403 = new UnauthorizedCacheControlHeaderStrategy("FAIL_WITH_403");
/// <summary>
/// Constant SUCCEED_WITH_RESPONSE_HEADER for UnauthorizedCacheControlHeaderStrategy
/// </summary>
public static readonly UnauthorizedCacheControlHeaderStrategy SUCCEED_WITH_RESPONSE_HEADER = new UnauthorizedCacheControlHeaderStrategy("SUCCEED_WITH_RESPONSE_HEADER");
/// <summary>
/// Constant SUCCEED_WITHOUT_RESPONSE_HEADER for UnauthorizedCacheControlHeaderStrategy
/// </summary>
public static readonly UnauthorizedCacheControlHeaderStrategy SUCCEED_WITHOUT_RESPONSE_HEADER = new UnauthorizedCacheControlHeaderStrategy("SUCCEED_WITHOUT_RESPONSE_HEADER");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public UnauthorizedCacheControlHeaderStrategy(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static UnauthorizedCacheControlHeaderStrategy FindValue(string value)
{
return FindValue<UnauthorizedCacheControlHeaderStrategy>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator UnauthorizedCacheControlHeaderStrategy(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type VpcLinkStatus.
/// </summary>
public class VpcLinkStatus : ConstantClass
{
/// <summary>
/// Constant AVAILABLE for VpcLinkStatus
/// </summary>
public static readonly VpcLinkStatus AVAILABLE = new VpcLinkStatus("AVAILABLE");
/// <summary>
/// Constant DELETING for VpcLinkStatus
/// </summary>
public static readonly VpcLinkStatus DELETING = new VpcLinkStatus("DELETING");
/// <summary>
/// Constant FAILED for VpcLinkStatus
/// </summary>
public static readonly VpcLinkStatus FAILED = new VpcLinkStatus("FAILED");
/// <summary>
/// Constant PENDING for VpcLinkStatus
/// </summary>
public static readonly VpcLinkStatus PENDING = new VpcLinkStatus("PENDING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public VpcLinkStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static VpcLinkStatus FindValue(string value)
{
return FindValue<VpcLinkStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator VpcLinkStatus(string value)
{
return FindValue(value);
}
}
} | 1,188 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.APIGateway.Internal
{
/// <summary>
/// Amazon APIGateway endpoint provider.
/// Resolves endpoint for given set of APIGatewayEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonAPIGatewayEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for APIGatewayEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["Region"] == null)
throw new AmazonClientException("Region parameter must be set for endpoint resolution");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://apigateway-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
return new Endpoint(Interpolate(@"https://apigateway-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://apigateway.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://apigateway.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("Cannot resolve endpoint");
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using Amazon.APIGateway.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.APIGateway.Endpoints;
#pragma warning disable 1591
namespace Amazon.APIGateway.Internal
{
/// <summary>
/// Amazon APIGateway endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for APIGateway service requests.
/// Collects values for APIGatewayEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses APIGatewayEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonAPIGatewayEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonAPIGatewayConfig)requestContext.ClientConfig;
var result = new APIGatewayEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
} | 83 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Internal
{
/// <summary>
/// Service metadata for Amazon APIGateway service
/// </summary>
public partial class AmazonAPIGatewayMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "API Gateway";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
} | 55 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Access log settings, including the access log format and access log destination ARN.
/// </summary>
public partial class AccessLogSettings
{
private string _destinationArn;
private string _format;
/// <summary>
/// Gets and sets the property DestinationArn.
/// <para>
/// The Amazon Resource Name (ARN) of the CloudWatch Logs log group or Kinesis Data Firehose
/// delivery stream to receive access logs. If you specify a Kinesis Data Firehose delivery
/// stream, the stream name must begin with <code>amazon-apigateway-</code>.
/// </para>
/// </summary>
public string DestinationArn
{
get { return this._destinationArn; }
set { this._destinationArn = value; }
}
// Check to see if DestinationArn property is set
internal bool IsSetDestinationArn()
{
return this._destinationArn != null;
}
/// <summary>
/// Gets and sets the property Format.
/// <para>
/// A single line format of the access logs of data, as specified by selected $context
/// variables. The format must include at least <code>$context.requestId</code>.
/// </para>
/// </summary>
public string Format
{
get { return this._format; }
set { this._format = value; }
}
// Check to see if Format property is set
internal bool IsSetFormat()
{
return this._format != null;
}
}
} | 79 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.APIGateway
{
/// <summary>
/// Base class for APIGateway operation requests.
/// </summary>
public partial class AmazonAPIGatewayRequest : AmazonWebServiceRequest
{
}
} | 30 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// A resource that can be distributed to callers for executing Method resources that
/// require an API key. API keys can be mapped to any Stage on any RestApi, which indicates
/// that the callers with the API key can make requests to that stage.
/// </summary>
public partial class ApiKey
{
private DateTime? _createdDate;
private string _customerId;
private string _description;
private bool? _enabled;
private string _id;
private DateTime? _lastUpdatedDate;
private string _name;
private List<string> _stageKeys = new List<string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _value;
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The timestamp when the API Key was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property CustomerId.
/// <para>
/// An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
/// </para>
/// </summary>
public string CustomerId
{
get { return this._customerId; }
set { this._customerId = value; }
}
// Check to see if CustomerId property is set
internal bool IsSetCustomerId()
{
return this._customerId != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the API Key.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// Specifies whether the API Key can be used by callers.
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier of the API Key.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedDate.
/// <para>
/// The timestamp when the API Key was last updated.
/// </para>
/// </summary>
public DateTime LastUpdatedDate
{
get { return this._lastUpdatedDate.GetValueOrDefault(); }
set { this._lastUpdatedDate = value; }
}
// Check to see if LastUpdatedDate property is set
internal bool IsSetLastUpdatedDate()
{
return this._lastUpdatedDate.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the API Key.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property StageKeys.
/// <para>
/// A list of Stage resources that are associated with the ApiKey resource.
/// </para>
/// </summary>
public List<string> StageKeys
{
get { return this._stageKeys; }
set { this._stageKeys = value; }
}
// Check to see if StageKeys property is set
internal bool IsSetStageKeys()
{
return this._stageKeys != null && this._stageKeys.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the API Key.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 230 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// API stage name of the associated API stage in a usage plan.
/// </summary>
public partial class ApiStage
{
private string _apiId;
private string _stage;
private Dictionary<string, ThrottleSettings> _throttle = new Dictionary<string, ThrottleSettings>();
/// <summary>
/// Gets and sets the property ApiId.
/// <para>
/// API Id of the associated API stage in a usage plan.
/// </para>
/// </summary>
public string ApiId
{
get { return this._apiId; }
set { this._apiId = value; }
}
// Check to see if ApiId property is set
internal bool IsSetApiId()
{
return this._apiId != null;
}
/// <summary>
/// Gets and sets the property Stage.
/// <para>
/// API stage name of the associated API stage in a usage plan.
/// </para>
/// </summary>
public string Stage
{
get { return this._stage; }
set { this._stage = value; }
}
// Check to see if Stage property is set
internal bool IsSetStage()
{
return this._stage != null;
}
/// <summary>
/// Gets and sets the property Throttle.
/// <para>
/// Map containing method level throttling information for API stage in a usage plan.
/// </para>
/// </summary>
public Dictionary<string, ThrottleSettings> Throttle
{
get { return this._throttle; }
set { this._throttle = value; }
}
// Check to see if Throttle property is set
internal bool IsSetThrottle()
{
return this._throttle != null && this._throttle.Count > 0;
}
}
} | 95 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents an authorization layer for methods. If enabled on a method, API Gateway
/// will activate the authorizer when a client calls the method.
/// </summary>
public partial class Authorizer
{
private string _authorizerCredentials;
private int? _authorizerResultTtlInSeconds;
private string _authorizerUri;
private string _authType;
private string _id;
private string _identitySource;
private string _identityValidationExpression;
private string _name;
private List<string> _providerarNs = new List<string>();
private AuthorizerType _type;
/// <summary>
/// Gets and sets the property AuthorizerCredentials.
/// <para>
/// Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer.
/// To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name
/// (ARN). To use resource-based permissions on the Lambda function, specify null.
/// </para>
/// </summary>
public string AuthorizerCredentials
{
get { return this._authorizerCredentials; }
set { this._authorizerCredentials = value; }
}
// Check to see if AuthorizerCredentials property is set
internal bool IsSetAuthorizerCredentials()
{
return this._authorizerCredentials != null;
}
/// <summary>
/// Gets and sets the property AuthorizerResultTtlInSeconds.
/// <para>
/// The TTL in seconds of cached authorizer results. If it equals 0, authorization caching
/// is disabled. If it is greater than 0, API Gateway will cache authorizer responses.
/// If this field is not set, the default value is 300. The maximum value is 3600, or
/// 1 hour.
/// </para>
/// </summary>
public int AuthorizerResultTtlInSeconds
{
get { return this._authorizerResultTtlInSeconds.GetValueOrDefault(); }
set { this._authorizerResultTtlInSeconds = value; }
}
// Check to see if AuthorizerResultTtlInSeconds property is set
internal bool IsSetAuthorizerResultTtlInSeconds()
{
return this._authorizerResultTtlInSeconds.HasValue;
}
/// <summary>
/// Gets and sets the property AuthorizerUri.
/// <para>
/// Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code>
/// or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI,
/// for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations</code>.
/// In general, the URI has this form <code>arn:aws:apigateway:{region}:lambda:path/{service_api}</code>,
/// where <code>{region}</code> is the same as the region hosting the Lambda function,
/// <code>path</code> indicates that the remaining substring in the URI should be treated
/// as the path to the resource, including the initial <code>/</code>. For Lambda functions,
/// this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>.
/// </para>
/// </summary>
public string AuthorizerUri
{
get { return this._authorizerUri; }
set { this._authorizerUri = value; }
}
// Check to see if AuthorizerUri property is set
internal bool IsSetAuthorizerUri()
{
return this._authorizerUri != null;
}
/// <summary>
/// Gets and sets the property AuthType.
/// <para>
/// Optional customer-defined field, used in OpenAPI imports and exports without functional
/// impact.
/// </para>
/// </summary>
public string AuthType
{
get { return this._authType; }
set { this._authType = value; }
}
// Check to see if AuthType property is set
internal bool IsSetAuthType()
{
return this._authType != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier for the authorizer resource.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property IdentitySource.
/// <para>
/// The identity source for which authorization is requested. For a <code>TOKEN</code>
/// or <code>COGNITO_USER_POOLS</code> authorizer, this is required and specifies the
/// request header mapping expression for the custom header holding the authorization
/// token submitted by the client. For example, if the token header name is <code>Auth</code>,
/// the header mapping expression is <code>method.request.header.Auth</code>. For the
/// <code>REQUEST</code> authorizer, this is required when authorization caching is enabled.
/// The value is a comma-separated string of one or more mapping expressions of the specified
/// request parameters. For example, if an <code>Auth</code> header, a <code>Name</code>
/// query string parameter are defined as identity sources, this value is <code>method.request.header.Auth</code>,
/// <code>method.request.querystring.Name</code>. These parameters will be used to derive
/// the authorization caching key and to perform runtime validation of the <code>REQUEST</code>
/// authorizer by verifying all of the identity-related request parameters are present,
/// not null and non-empty. Only when this is true does the authorizer invoke the authorizer
/// Lambda function, otherwise, it returns a 401 Unauthorized response without calling
/// the Lambda function. The valid value is a string of comma-separated mapping expressions
/// of the specified request parameters. When the authorization caching is not enabled,
/// this property is optional.
/// </para>
/// </summary>
public string IdentitySource
{
get { return this._identitySource; }
set { this._identitySource = value; }
}
// Check to see if IdentitySource property is set
internal bool IsSetIdentitySource()
{
return this._identitySource != null;
}
/// <summary>
/// Gets and sets the property IdentityValidationExpression.
/// <para>
/// A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers,
/// this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers,
/// API Gateway will match the <code>aud</code> field of the incoming token from the client
/// against the specified regular expression. It will invoke the authorizer's Lambda function
/// when there is a match. Otherwise, it will return a 401 Unauthorized response without
/// calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code>
/// authorizer.
/// </para>
/// </summary>
public string IdentityValidationExpression
{
get { return this._identityValidationExpression; }
set { this._identityValidationExpression = value; }
}
// Check to see if IdentityValidationExpression property is set
internal bool IsSetIdentityValidationExpression()
{
return this._identityValidationExpression != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the authorizer.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ProviderARNs.
/// <para>
/// A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code>
/// authorizer. Each element is of this format: <code>arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}</code>.
/// For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined.
///
/// </para>
/// </summary>
public List<string> ProviderARNs
{
get { return this._providerarNs; }
set { this._providerarNs = value; }
}
// Check to see if ProviderARNs property is set
internal bool IsSetProviderARNs()
{
return this._providerarNs != null && this._providerarNs.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using
/// a single authorization token submitted in a custom header, <code>REQUEST</code> for
/// a Lambda function using incoming request parameters, and <code>COGNITO_USER_POOLS</code>
/// for using an Amazon Cognito user pool.
/// </para>
/// </summary>
public AuthorizerType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 270 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// The submitted request is not valid, for example, the input is incomplete or incorrect.
/// See the accompanying error message for details.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class BadRequestException : AmazonAPIGatewayException
{
/// <summary>
/// Constructs a new BadRequestException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public BadRequestException(string message)
: base(message) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public BadRequestException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="innerException"></param>
public BadRequestException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public BadRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of BadRequestException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public BadRequestException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the BadRequestException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected BadRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 125 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents the base path that callers of the API must provide as part of the URL after
/// the domain name.
/// </summary>
public partial class BasePathMapping
{
private string _basePath;
private string _restApiId;
private string _stage;
/// <summary>
/// Gets and sets the property BasePath.
/// <para>
/// The base path name that callers of the API must provide as part of the URL after the
/// domain name.
/// </para>
/// </summary>
public string BasePath
{
get { return this._basePath; }
set { this._basePath = value; }
}
// Check to see if BasePath property is set
internal bool IsSetBasePath()
{
return this._basePath != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property Stage.
/// <para>
/// The name of the associated stage.
/// </para>
/// </summary>
public string Stage
{
get { return this._stage; }
set { this._stage = value; }
}
// Check to see if Stage property is set
internal bool IsSetStage()
{
return this._stage != null;
}
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Configuration settings of a canary deployment.
/// </summary>
public partial class CanarySettings
{
private string _deploymentId;
private double? _percentTraffic;
private Dictionary<string, string> _stageVariableOverrides = new Dictionary<string, string>();
private bool? _useStageCache;
/// <summary>
/// Gets and sets the property DeploymentId.
/// <para>
/// The ID of the canary deployment.
/// </para>
/// </summary>
public string DeploymentId
{
get { return this._deploymentId; }
set { this._deploymentId = value; }
}
// Check to see if DeploymentId property is set
internal bool IsSetDeploymentId()
{
return this._deploymentId != null;
}
/// <summary>
/// Gets and sets the property PercentTraffic.
/// <para>
/// The percent (0-100) of traffic diverted to a canary deployment.
/// </para>
/// </summary>
public double PercentTraffic
{
get { return this._percentTraffic.GetValueOrDefault(); }
set { this._percentTraffic = value; }
}
// Check to see if PercentTraffic property is set
internal bool IsSetPercentTraffic()
{
return this._percentTraffic.HasValue;
}
/// <summary>
/// Gets and sets the property StageVariableOverrides.
/// <para>
/// Stage variables overridden for a canary release deployment, including new stage variables
/// introduced in the canary. These stage variables are represented as a string-to-string
/// map between stage variable names and their values.
/// </para>
/// </summary>
public Dictionary<string, string> StageVariableOverrides
{
get { return this._stageVariableOverrides; }
set { this._stageVariableOverrides = value; }
}
// Check to see if StageVariableOverrides property is set
internal bool IsSetStageVariableOverrides()
{
return this._stageVariableOverrides != null && this._stageVariableOverrides.Count > 0;
}
/// <summary>
/// Gets and sets the property UseStageCache.
/// <para>
/// A Boolean flag to indicate whether the canary deployment uses the stage cache or not.
/// </para>
/// </summary>
public bool UseStageCache
{
get { return this._useStageCache.GetValueOrDefault(); }
set { this._useStageCache = value; }
}
// Check to see if UseStageCache property is set
internal bool IsSetUseStageCache()
{
return this._useStageCache.HasValue;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents a client certificate used to configure client-side SSL authentication while
/// sending requests to the integration endpoint.
/// </summary>
public partial class ClientCertificate
{
private string _clientCertificateId;
private DateTime? _createdDate;
private string _description;
private DateTime? _expirationDate;
private string _pemEncodedCertificate;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ClientCertificateId.
/// <para>
/// The identifier of the client certificate.
/// </para>
/// </summary>
public string ClientCertificateId
{
get { return this._clientCertificateId; }
set { this._clientCertificateId = value; }
}
// Check to see if ClientCertificateId property is set
internal bool IsSetClientCertificateId()
{
return this._clientCertificateId != null;
}
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The timestamp when the client certificate was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the client certificate.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property ExpirationDate.
/// <para>
/// The timestamp when the client certificate will expire.
/// </para>
/// </summary>
public DateTime ExpirationDate
{
get { return this._expirationDate.GetValueOrDefault(); }
set { this._expirationDate = value; }
}
// Check to see if ExpirationDate property is set
internal bool IsSetExpirationDate()
{
return this._expirationDate.HasValue;
}
/// <summary>
/// Gets and sets the property PemEncodedCertificate.
/// <para>
/// The PEM-encoded public key of the client certificate, which can be used to configure
/// certificate authentication in the integration endpoint .
/// </para>
/// </summary>
public string PemEncodedCertificate
{
get { return this._pemEncodedCertificate; }
set { this._pemEncodedCertificate = value; }
}
// Check to see if PemEncodedCertificate property is set
internal bool IsSetPemEncodedCertificate()
{
return this._pemEncodedCertificate != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 154 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// The request configuration has conflicts. For details, see the accompanying error message.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonAPIGatewayException
{
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
}
#endif
}
} | 124 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateApiKey operation.
/// Create an ApiKey resource.
/// </summary>
public partial class CreateApiKeyRequest : AmazonAPIGatewayRequest
{
private string _customerId;
private string _description;
private bool? _enabled;
private bool? _generateDistinctId;
private string _name;
private List<StageKey> _stageKeys = new List<StageKey>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _value;
/// <summary>
/// Gets and sets the property CustomerId.
/// <para>
/// An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
/// </para>
/// </summary>
public string CustomerId
{
get { return this._customerId; }
set { this._customerId = value; }
}
// Check to see if CustomerId property is set
internal bool IsSetCustomerId()
{
return this._customerId != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the ApiKey.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// Specifies whether the ApiKey can be used by callers.
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
/// <summary>
/// Gets and sets the property GenerateDistinctId.
/// <para>
/// Specifies whether (<code>true</code>) or not (<code>false</code>) the key identifier
/// is distinct from the created API key value. This parameter is deprecated and should
/// not be used.
/// </para>
/// </summary>
public bool GenerateDistinctId
{
get { return this._generateDistinctId.GetValueOrDefault(); }
set { this._generateDistinctId = value; }
}
// Check to see if GenerateDistinctId property is set
internal bool IsSetGenerateDistinctId()
{
return this._generateDistinctId.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the ApiKey.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property StageKeys.
/// <para>
/// DEPRECATED FOR USAGE PLANS - Specifies stages associated with the API key.
/// </para>
/// </summary>
public List<StageKey> StageKeys
{
get { return this._stageKeys; }
set { this._stageKeys = value; }
}
// Check to see if StageKeys property is set
internal bool IsSetStageKeys()
{
return this._stageKeys != null && this._stageKeys.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag
/// key can be up to 128 characters and must not start with <code>aws:</code>. The tag
/// value can be up to 256 characters.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// Specifies a value of the API key.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 195 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// A resource that can be distributed to callers for executing Method resources that
/// require an API key. API keys can be mapped to any Stage on any RestApi, which indicates
/// that the callers with the API key can make requests to that stage.
/// </summary>
public partial class CreateApiKeyResponse : AmazonWebServiceResponse
{
private DateTime? _createdDate;
private string _customerId;
private string _description;
private bool? _enabled;
private string _id;
private DateTime? _lastUpdatedDate;
private string _name;
private List<string> _stageKeys = new List<string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _value;
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The timestamp when the API Key was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property CustomerId.
/// <para>
/// An AWS Marketplace customer identifier , when integrating with the AWS SaaS Marketplace.
/// </para>
/// </summary>
public string CustomerId
{
get { return this._customerId; }
set { this._customerId = value; }
}
// Check to see if CustomerId property is set
internal bool IsSetCustomerId()
{
return this._customerId != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the API Key.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Enabled.
/// <para>
/// Specifies whether the API Key can be used by callers.
/// </para>
/// </summary>
public bool Enabled
{
get { return this._enabled.GetValueOrDefault(); }
set { this._enabled = value; }
}
// Check to see if Enabled property is set
internal bool IsSetEnabled()
{
return this._enabled.HasValue;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier of the API Key.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property LastUpdatedDate.
/// <para>
/// The timestamp when the API Key was last updated.
/// </para>
/// </summary>
public DateTime LastUpdatedDate
{
get { return this._lastUpdatedDate.GetValueOrDefault(); }
set { this._lastUpdatedDate = value; }
}
// Check to see if LastUpdatedDate property is set
internal bool IsSetLastUpdatedDate()
{
return this._lastUpdatedDate.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the API Key.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property StageKeys.
/// <para>
/// A list of Stage resources that are associated with the ApiKey resource.
/// </para>
/// </summary>
public List<string> StageKeys
{
get { return this._stageKeys; }
set { this._stageKeys = value; }
}
// Check to see if StageKeys property is set
internal bool IsSetStageKeys()
{
return this._stageKeys != null && this._stageKeys.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Value.
/// <para>
/// The value of the API Key.
/// </para>
/// </summary>
public string Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
} | 230 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateAuthorizer operation.
/// Adds a new Authorizer resource to an existing RestApi resource.
/// </summary>
public partial class CreateAuthorizerRequest : AmazonAPIGatewayRequest
{
private string _authorizerCredentials;
private int? _authorizerResultTtlInSeconds;
private string _authorizerUri;
private string _authType;
private string _identitySource;
private string _identityValidationExpression;
private string _name;
private List<string> _providerarNs = new List<string>();
private string _restApiId;
private AuthorizerType _type;
/// <summary>
/// Gets and sets the property AuthorizerCredentials.
/// <para>
/// Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer.
/// To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name
/// (ARN). To use resource-based permissions on the Lambda function, specify null.
/// </para>
/// </summary>
public string AuthorizerCredentials
{
get { return this._authorizerCredentials; }
set { this._authorizerCredentials = value; }
}
// Check to see if AuthorizerCredentials property is set
internal bool IsSetAuthorizerCredentials()
{
return this._authorizerCredentials != null;
}
/// <summary>
/// Gets and sets the property AuthorizerResultTtlInSeconds.
/// <para>
/// The TTL in seconds of cached authorizer results. If it equals 0, authorization caching
/// is disabled. If it is greater than 0, API Gateway will cache authorizer responses.
/// If this field is not set, the default value is 300. The maximum value is 3600, or
/// 1 hour.
/// </para>
/// </summary>
public int AuthorizerResultTtlInSeconds
{
get { return this._authorizerResultTtlInSeconds.GetValueOrDefault(); }
set { this._authorizerResultTtlInSeconds = value; }
}
// Check to see if AuthorizerResultTtlInSeconds property is set
internal bool IsSetAuthorizerResultTtlInSeconds()
{
return this._authorizerResultTtlInSeconds.HasValue;
}
/// <summary>
/// Gets and sets the property AuthorizerUri.
/// <para>
/// Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code>
/// or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI,
/// for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations</code>.
/// In general, the URI has this form <code>arn:aws:apigateway:{region}:lambda:path/{service_api}</code>,
/// where <code>{region}</code> is the same as the region hosting the Lambda function,
/// <code>path</code> indicates that the remaining substring in the URI should be treated
/// as the path to the resource, including the initial <code>/</code>. For Lambda functions,
/// this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>.
/// </para>
/// </summary>
public string AuthorizerUri
{
get { return this._authorizerUri; }
set { this._authorizerUri = value; }
}
// Check to see if AuthorizerUri property is set
internal bool IsSetAuthorizerUri()
{
return this._authorizerUri != null;
}
/// <summary>
/// Gets and sets the property AuthType.
/// <para>
/// Optional customer-defined field, used in OpenAPI imports and exports without functional
/// impact.
/// </para>
/// </summary>
public string AuthType
{
get { return this._authType; }
set { this._authType = value; }
}
// Check to see if AuthType property is set
internal bool IsSetAuthType()
{
return this._authType != null;
}
/// <summary>
/// Gets and sets the property IdentitySource.
/// <para>
/// The identity source for which authorization is requested. For a <code>TOKEN</code>
/// or <code>COGNITO_USER_POOLS</code> authorizer, this is required and specifies the
/// request header mapping expression for the custom header holding the authorization
/// token submitted by the client. For example, if the token header name is <code>Auth</code>,
/// the header mapping expression is <code>method.request.header.Auth</code>. For the
/// <code>REQUEST</code> authorizer, this is required when authorization caching is enabled.
/// The value is a comma-separated string of one or more mapping expressions of the specified
/// request parameters. For example, if an <code>Auth</code> header, a <code>Name</code>
/// query string parameter are defined as identity sources, this value is <code>method.request.header.Auth,
/// method.request.querystring.Name</code>. These parameters will be used to derive the
/// authorization caching key and to perform runtime validation of the <code>REQUEST</code>
/// authorizer by verifying all of the identity-related request parameters are present,
/// not null and non-empty. Only when this is true does the authorizer invoke the authorizer
/// Lambda function, otherwise, it returns a 401 Unauthorized response without calling
/// the Lambda function. The valid value is a string of comma-separated mapping expressions
/// of the specified request parameters. When the authorization caching is not enabled,
/// this property is optional.
/// </para>
/// </summary>
public string IdentitySource
{
get { return this._identitySource; }
set { this._identitySource = value; }
}
// Check to see if IdentitySource property is set
internal bool IsSetIdentitySource()
{
return this._identitySource != null;
}
/// <summary>
/// Gets and sets the property IdentityValidationExpression.
/// <para>
/// A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers,
/// this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers,
/// API Gateway will match the <code>aud</code> field of the incoming token from the client
/// against the specified regular expression. It will invoke the authorizer's Lambda function
/// when there is a match. Otherwise, it will return a 401 Unauthorized response without
/// calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code>
/// authorizer.
/// </para>
/// </summary>
public string IdentityValidationExpression
{
get { return this._identityValidationExpression; }
set { this._identityValidationExpression = value; }
}
// Check to see if IdentityValidationExpression property is set
internal bool IsSetIdentityValidationExpression()
{
return this._identityValidationExpression != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the authorizer.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ProviderARNs.
/// <para>
/// A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code>
/// authorizer. Each element is of this format: <code>arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}</code>.
/// For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined.
///
/// </para>
/// </summary>
public List<string> ProviderARNs
{
get { return this._providerarNs; }
set { this._providerarNs = value; }
}
// Check to see if ProviderARNs property is set
internal bool IsSetProviderARNs()
{
return this._providerarNs != null && this._providerarNs.Count > 0;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using
/// a single authorization token submitted in a custom header, <code>REQUEST</code> for
/// a Lambda function using incoming request parameters, and <code>COGNITO_USER_POOLS</code>
/// for using an Amazon Cognito user pool.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public AuthorizerType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 273 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents an authorization layer for methods. If enabled on a method, API Gateway
/// will activate the authorizer when a client calls the method.
/// </summary>
public partial class CreateAuthorizerResponse : AmazonWebServiceResponse
{
private string _authorizerCredentials;
private int? _authorizerResultTtlInSeconds;
private string _authorizerUri;
private string _authType;
private string _id;
private string _identitySource;
private string _identityValidationExpression;
private string _name;
private List<string> _providerarNs = new List<string>();
private AuthorizerType _type;
/// <summary>
/// Gets and sets the property AuthorizerCredentials.
/// <para>
/// Specifies the required credentials as an IAM role for API Gateway to invoke the authorizer.
/// To specify an IAM role for API Gateway to assume, use the role's Amazon Resource Name
/// (ARN). To use resource-based permissions on the Lambda function, specify null.
/// </para>
/// </summary>
public string AuthorizerCredentials
{
get { return this._authorizerCredentials; }
set { this._authorizerCredentials = value; }
}
// Check to see if AuthorizerCredentials property is set
internal bool IsSetAuthorizerCredentials()
{
return this._authorizerCredentials != null;
}
/// <summary>
/// Gets and sets the property AuthorizerResultTtlInSeconds.
/// <para>
/// The TTL in seconds of cached authorizer results. If it equals 0, authorization caching
/// is disabled. If it is greater than 0, API Gateway will cache authorizer responses.
/// If this field is not set, the default value is 300. The maximum value is 3600, or
/// 1 hour.
/// </para>
/// </summary>
public int AuthorizerResultTtlInSeconds
{
get { return this._authorizerResultTtlInSeconds.GetValueOrDefault(); }
set { this._authorizerResultTtlInSeconds = value; }
}
// Check to see if AuthorizerResultTtlInSeconds property is set
internal bool IsSetAuthorizerResultTtlInSeconds()
{
return this._authorizerResultTtlInSeconds.HasValue;
}
/// <summary>
/// Gets and sets the property AuthorizerUri.
/// <para>
/// Specifies the authorizer's Uniform Resource Identifier (URI). For <code>TOKEN</code>
/// or <code>REQUEST</code> authorizers, this must be a well-formed Lambda function URI,
/// for example, <code>arn:aws:apigateway:us-west-2:lambda:path/2015-03-31/functions/arn:aws:lambda:us-west-2:{account_id}:function:{lambda_function_name}/invocations</code>.
/// In general, the URI has this form <code>arn:aws:apigateway:{region}:lambda:path/{service_api}</code>,
/// where <code>{region}</code> is the same as the region hosting the Lambda function,
/// <code>path</code> indicates that the remaining substring in the URI should be treated
/// as the path to the resource, including the initial <code>/</code>. For Lambda functions,
/// this is usually of the form <code>/2015-03-31/functions/[FunctionARN]/invocations</code>.
/// </para>
/// </summary>
public string AuthorizerUri
{
get { return this._authorizerUri; }
set { this._authorizerUri = value; }
}
// Check to see if AuthorizerUri property is set
internal bool IsSetAuthorizerUri()
{
return this._authorizerUri != null;
}
/// <summary>
/// Gets and sets the property AuthType.
/// <para>
/// Optional customer-defined field, used in OpenAPI imports and exports without functional
/// impact.
/// </para>
/// </summary>
public string AuthType
{
get { return this._authType; }
set { this._authType = value; }
}
// Check to see if AuthType property is set
internal bool IsSetAuthType()
{
return this._authType != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier for the authorizer resource.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property IdentitySource.
/// <para>
/// The identity source for which authorization is requested. For a <code>TOKEN</code>
/// or <code>COGNITO_USER_POOLS</code> authorizer, this is required and specifies the
/// request header mapping expression for the custom header holding the authorization
/// token submitted by the client. For example, if the token header name is <code>Auth</code>,
/// the header mapping expression is <code>method.request.header.Auth</code>. For the
/// <code>REQUEST</code> authorizer, this is required when authorization caching is enabled.
/// The value is a comma-separated string of one or more mapping expressions of the specified
/// request parameters. For example, if an <code>Auth</code> header, a <code>Name</code>
/// query string parameter are defined as identity sources, this value is <code>method.request.header.Auth</code>,
/// <code>method.request.querystring.Name</code>. These parameters will be used to derive
/// the authorization caching key and to perform runtime validation of the <code>REQUEST</code>
/// authorizer by verifying all of the identity-related request parameters are present,
/// not null and non-empty. Only when this is true does the authorizer invoke the authorizer
/// Lambda function, otherwise, it returns a 401 Unauthorized response without calling
/// the Lambda function. The valid value is a string of comma-separated mapping expressions
/// of the specified request parameters. When the authorization caching is not enabled,
/// this property is optional.
/// </para>
/// </summary>
public string IdentitySource
{
get { return this._identitySource; }
set { this._identitySource = value; }
}
// Check to see if IdentitySource property is set
internal bool IsSetIdentitySource()
{
return this._identitySource != null;
}
/// <summary>
/// Gets and sets the property IdentityValidationExpression.
/// <para>
/// A validation expression for the incoming identity token. For <code>TOKEN</code> authorizers,
/// this value is a regular expression. For <code>COGNITO_USER_POOLS</code> authorizers,
/// API Gateway will match the <code>aud</code> field of the incoming token from the client
/// against the specified regular expression. It will invoke the authorizer's Lambda function
/// when there is a match. Otherwise, it will return a 401 Unauthorized response without
/// calling the Lambda function. The validation expression does not apply to the <code>REQUEST</code>
/// authorizer.
/// </para>
/// </summary>
public string IdentityValidationExpression
{
get { return this._identityValidationExpression; }
set { this._identityValidationExpression = value; }
}
// Check to see if IdentityValidationExpression property is set
internal bool IsSetIdentityValidationExpression()
{
return this._identityValidationExpression != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the authorizer.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ProviderARNs.
/// <para>
/// A list of the Amazon Cognito user pool ARNs for the <code>COGNITO_USER_POOLS</code>
/// authorizer. Each element is of this format: <code>arn:aws:cognito-idp:{region}:{account_id}:userpool/{user_pool_id}</code>.
/// For a <code>TOKEN</code> or <code>REQUEST</code> authorizer, this is not defined.
///
/// </para>
/// </summary>
public List<string> ProviderARNs
{
get { return this._providerarNs; }
set { this._providerarNs = value; }
}
// Check to see if ProviderARNs property is set
internal bool IsSetProviderARNs()
{
return this._providerarNs != null && this._providerarNs.Count > 0;
}
/// <summary>
/// Gets and sets the property Type.
/// <para>
/// The authorizer type. Valid values are <code>TOKEN</code> for a Lambda function using
/// a single authorization token submitted in a custom header, <code>REQUEST</code> for
/// a Lambda function using incoming request parameters, and <code>COGNITO_USER_POOLS</code>
/// for using an Amazon Cognito user pool.
/// </para>
/// </summary>
public AuthorizerType Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
} | 270 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateBasePathMapping operation.
/// Creates a new BasePathMapping resource.
/// </summary>
public partial class CreateBasePathMappingRequest : AmazonAPIGatewayRequest
{
private string _basePath;
private string _domainName;
private string _restApiId;
private string _stage;
/// <summary>
/// Gets and sets the property BasePath.
/// <para>
/// The base path name that callers of the API must provide as part of the URL after the
/// domain name. This value must be unique for all of the mappings across a single API.
/// Specify '(none)' if you do not want callers to specify a base path name after the
/// domain name.
/// </para>
/// </summary>
public string BasePath
{
get { return this._basePath; }
set { this._basePath = value; }
}
// Check to see if BasePath property is set
internal bool IsSetBasePath()
{
return this._basePath != null;
}
/// <summary>
/// Gets and sets the property DomainName.
/// <para>
/// The domain name of the BasePathMapping resource to create.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property Stage.
/// <para>
/// The name of the API's stage that you want to use for this mapping. Specify '(none)'
/// if you want callers to explicitly specify the stage name after any base path name.
/// </para>
/// </summary>
public string Stage
{
get { return this._stage; }
set { this._stage = value; }
}
// Check to see if Stage property is set
internal bool IsSetStage()
{
return this._stage != null;
}
}
} | 121 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents the base path that callers of the API must provide as part of the URL after
/// the domain name.
/// </summary>
public partial class CreateBasePathMappingResponse : AmazonWebServiceResponse
{
private string _basePath;
private string _restApiId;
private string _stage;
/// <summary>
/// Gets and sets the property BasePath.
/// <para>
/// The base path name that callers of the API must provide as part of the URL after the
/// domain name.
/// </para>
/// </summary>
public string BasePath
{
get { return this._basePath; }
set { this._basePath = value; }
}
// Check to see if BasePath property is set
internal bool IsSetBasePath()
{
return this._basePath != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property Stage.
/// <para>
/// The name of the associated stage.
/// </para>
/// </summary>
public string Stage
{
get { return this._stage; }
set { this._stage = value; }
}
// Check to see if Stage property is set
internal bool IsSetStage()
{
return this._stage != null;
}
}
} | 97 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateDeployment operation.
/// Creates a Deployment resource, which makes a specified RestApi callable over the internet.
/// </summary>
public partial class CreateDeploymentRequest : AmazonAPIGatewayRequest
{
private bool? _cacheClusterEnabled;
private CacheClusterSize _cacheClusterSize;
private DeploymentCanarySettings _canarySettings;
private string _description;
private string _restApiId;
private string _stageDescription;
private string _stageName;
private bool? _tracingEnabled;
private Dictionary<string, string> _variables = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property CacheClusterEnabled.
/// <para>
/// Enables a cache cluster for the Stage resource specified in the input.
/// </para>
/// </summary>
public bool CacheClusterEnabled
{
get { return this._cacheClusterEnabled.GetValueOrDefault(); }
set { this._cacheClusterEnabled = value; }
}
// Check to see if CacheClusterEnabled property is set
internal bool IsSetCacheClusterEnabled()
{
return this._cacheClusterEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property CacheClusterSize.
/// <para>
/// The stage's cache capacity in GB. For more information about choosing a cache size,
/// see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling
/// API caching to enhance responsiveness</a>.
/// </para>
/// </summary>
public CacheClusterSize CacheClusterSize
{
get { return this._cacheClusterSize; }
set { this._cacheClusterSize = value; }
}
// Check to see if CacheClusterSize property is set
internal bool IsSetCacheClusterSize()
{
return this._cacheClusterSize != null;
}
/// <summary>
/// Gets and sets the property CanarySettings.
/// <para>
/// The input configuration for the canary deployment when the deployment is a canary
/// release deployment.
/// </para>
/// </summary>
public DeploymentCanarySettings CanarySettings
{
get { return this._canarySettings; }
set { this._canarySettings = value; }
}
// Check to see if CanarySettings property is set
internal bool IsSetCanarySettings()
{
return this._canarySettings != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description for the Deployment resource to create.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property StageDescription.
/// <para>
/// The description of the Stage resource for the Deployment resource to create.
/// </para>
/// </summary>
public string StageDescription
{
get { return this._stageDescription; }
set { this._stageDescription = value; }
}
// Check to see if StageDescription property is set
internal bool IsSetStageDescription()
{
return this._stageDescription != null;
}
/// <summary>
/// Gets and sets the property StageName.
/// <para>
/// The name of the Stage resource for the Deployment resource to create.
/// </para>
/// </summary>
public string StageName
{
get { return this._stageName; }
set { this._stageName = value; }
}
// Check to see if StageName property is set
internal bool IsSetStageName()
{
return this._stageName != null;
}
/// <summary>
/// Gets and sets the property TracingEnabled.
/// <para>
/// Specifies whether active tracing with X-ray is enabled for the Stage.
/// </para>
/// </summary>
public bool TracingEnabled
{
get { return this._tracingEnabled.GetValueOrDefault(); }
set { this._tracingEnabled = value; }
}
// Check to see if TracingEnabled property is set
internal bool IsSetTracingEnabled()
{
return this._tracingEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property Variables.
/// <para>
/// A map that defines the stage variables for the Stage resource that is associated with
/// the new deployment. Variable names can have alphanumeric and underscore characters,
/// and the values must match <code>[A-Za-z0-9-._~:/?#&=,]+</code>.
/// </para>
/// </summary>
public Dictionary<string, string> Variables
{
get { return this._variables; }
set { this._variables = value; }
}
// Check to see if Variables property is set
internal bool IsSetVariables()
{
return this._variables != null && this._variables.Count > 0;
}
}
} | 216 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// An immutable representation of a RestApi resource that can be called by users using
/// Stages. A deployment must be associated with a Stage for it to be callable over the
/// Internet.
/// </summary>
public partial class CreateDeploymentResponse : AmazonWebServiceResponse
{
private Dictionary<string, Dictionary<string, MethodSnapshot>> _apiSummary = new Dictionary<string, Dictionary<string, MethodSnapshot>>();
private DateTime? _createdDate;
private string _description;
private string _id;
/// <summary>
/// Gets and sets the property ApiSummary.
/// <para>
/// A summary of the RestApi at the date and time that the deployment resource was created.
/// </para>
/// </summary>
public Dictionary<string, Dictionary<string, MethodSnapshot>> ApiSummary
{
get { return this._apiSummary; }
set { this._apiSummary = value; }
}
// Check to see if ApiSummary property is set
internal bool IsSetApiSummary()
{
return this._apiSummary != null && this._apiSummary.Count > 0;
}
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The date and time that the deployment resource was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description for the deployment resource.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier for the deployment resource.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateDocumentationPart operation.
/// Creates a documentation part.
/// </summary>
public partial class CreateDocumentationPartRequest : AmazonAPIGatewayRequest
{
private DocumentationPartLocation _location;
private string _properties;
private string _restApiId;
/// <summary>
/// Gets and sets the property Location.
/// <para>
/// The location of the targeted API entity of the to-be-created documentation part.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public DocumentationPartLocation Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
/// <summary>
/// Gets and sets the property Properties.
/// <para>
/// The new documentation content map of the targeted API entity. Enclosed key-value pairs
/// are API-specific, but only OpenAPI-compliant key-value pairs can be exported and,
/// hence, published.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Properties
{
get { return this._properties; }
set { this._properties = value; }
}
// Check to see if Properties property is set
internal bool IsSetProperties()
{
return this._properties != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
}
} | 101 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// A documentation part for a targeted API entity.
/// </summary>
public partial class CreateDocumentationPartResponse : AmazonWebServiceResponse
{
private string _id;
private DocumentationPartLocation _location;
private string _properties;
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The DocumentationPart identifier, generated by API Gateway when the <code>DocumentationPart</code>
/// is created.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Location.
/// <para>
/// The location of the API entity to which the documentation applies. Valid fields depend
/// on the targeted API entity type. All the valid location fields are not required. If
/// not explicitly specified, a valid location field is treated as a wildcard and associated
/// documentation content may be inherited by matching entities, unless overridden.
/// </para>
/// </summary>
public DocumentationPartLocation Location
{
get { return this._location; }
set { this._location = value; }
}
// Check to see if Location property is set
internal bool IsSetLocation()
{
return this._location != null;
}
/// <summary>
/// Gets and sets the property Properties.
/// <para>
/// A content map of API-specific key-value pairs describing the targeted API entity.
/// The map must be encoded as a JSON string, e.g., <code>"{ \"description\": \"The API
/// does ...\" }"</code>. Only OpenAPI-compliant documentation-related fields from the
/// properties map are exported and, hence, published as part of the API entity definitions,
/// while the original documentation parts are exported in a OpenAPI extension of <code>x-amazon-apigateway-documentation</code>.
/// </para>
/// </summary>
public string Properties
{
get { return this._properties; }
set { this._properties = value; }
}
// Check to see if Properties property is set
internal bool IsSetProperties()
{
return this._properties != null;
}
}
} | 103 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateDocumentationVersion operation.
/// Creates a documentation version
/// </summary>
public partial class CreateDocumentationVersionRequest : AmazonAPIGatewayRequest
{
private string _description;
private string _documentationVersion;
private string _restApiId;
private string _stageName;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// A description about the new documentation snapshot.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property DocumentationVersion.
/// <para>
/// The version identifier of the new snapshot.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DocumentationVersion
{
get { return this._documentationVersion; }
set { this._documentationVersion = value; }
}
// Check to see if DocumentationVersion property is set
internal bool IsSetDocumentationVersion()
{
return this._documentationVersion != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property StageName.
/// <para>
/// The stage name to be associated with the new documentation snapshot.
/// </para>
/// </summary>
public string StageName
{
get { return this._stageName; }
set { this._stageName = value; }
}
// Check to see if StageName property is set
internal bool IsSetStageName()
{
return this._stageName != null;
}
}
} | 117 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// A snapshot of the documentation of an API.
/// </summary>
public partial class CreateDocumentationVersionResponse : AmazonWebServiceResponse
{
private DateTime? _createdDate;
private string _description;
private string _version;
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The date when the API documentation snapshot is created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the API documentation snapshot.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// The version identifier of the API documentation snapshot.
/// </para>
/// </summary>
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
} | 95 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateDomainName operation.
/// Creates a new domain name.
/// </summary>
public partial class CreateDomainNameRequest : AmazonAPIGatewayRequest
{
private string _certificateArn;
private string _certificateBody;
private string _certificateChain;
private string _certificateName;
private string _certificatePrivateKey;
private string _domainName;
private EndpointConfiguration _endpointConfiguration;
private MutualTlsAuthenticationInput _mutualTlsAuthentication;
private string _ownershipVerificationCertificateArn;
private string _regionalCertificateArn;
private string _regionalCertificateName;
private SecurityPolicy _securityPolicy;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property CertificateArn.
/// <para>
/// The reference to an AWS-managed certificate that will be used by edge-optimized endpoint
/// for this domain name. AWS Certificate Manager is the only supported source.
/// </para>
/// </summary>
public string CertificateArn
{
get { return this._certificateArn; }
set { this._certificateArn = value; }
}
// Check to see if CertificateArn property is set
internal bool IsSetCertificateArn()
{
return this._certificateArn != null;
}
/// <summary>
/// Gets and sets the property CertificateBody.
/// <para>
/// [Deprecated] The body of the server certificate that will be used by edge-optimized
/// endpoint for this domain name provided by your certificate authority.
/// </para>
/// </summary>
public string CertificateBody
{
get { return this._certificateBody; }
set { this._certificateBody = value; }
}
// Check to see if CertificateBody property is set
internal bool IsSetCertificateBody()
{
return this._certificateBody != null;
}
/// <summary>
/// Gets and sets the property CertificateChain.
/// <para>
/// [Deprecated] The intermediate certificates and optionally the root certificate, one
/// after the other without any blank lines, used by an edge-optimized endpoint for this
/// domain name. If you include the root certificate, your certificate chain must start
/// with intermediate certificates and end with the root certificate. Use the intermediate
/// certificates that were provided by your certificate authority. Do not include any
/// intermediaries that are not in the chain of trust path.
/// </para>
/// </summary>
public string CertificateChain
{
get { return this._certificateChain; }
set { this._certificateChain = value; }
}
// Check to see if CertificateChain property is set
internal bool IsSetCertificateChain()
{
return this._certificateChain != null;
}
/// <summary>
/// Gets and sets the property CertificateName.
/// <para>
/// The user-friendly name of the certificate that will be used by edge-optimized endpoint
/// for this domain name.
/// </para>
/// </summary>
public string CertificateName
{
get { return this._certificateName; }
set { this._certificateName = value; }
}
// Check to see if CertificateName property is set
internal bool IsSetCertificateName()
{
return this._certificateName != null;
}
/// <summary>
/// Gets and sets the property CertificatePrivateKey.
/// <para>
/// [Deprecated] Your edge-optimized endpoint's domain name certificate's private key.
/// </para>
/// </summary>
public string CertificatePrivateKey
{
get { return this._certificatePrivateKey; }
set { this._certificatePrivateKey = value; }
}
// Check to see if CertificatePrivateKey property is set
internal bool IsSetCertificatePrivateKey()
{
return this._certificatePrivateKey != null;
}
/// <summary>
/// Gets and sets the property DomainName.
/// <para>
/// The name of the DomainName resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DomainName
{
get { return this._domainName; }
set { this._domainName = value; }
}
// Check to see if DomainName property is set
internal bool IsSetDomainName()
{
return this._domainName != null;
}
/// <summary>
/// Gets and sets the property EndpointConfiguration.
/// <para>
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
/// name.
/// </para>
/// </summary>
public EndpointConfiguration EndpointConfiguration
{
get { return this._endpointConfiguration; }
set { this._endpointConfiguration = value; }
}
// Check to see if EndpointConfiguration property is set
internal bool IsSetEndpointConfiguration()
{
return this._endpointConfiguration != null;
}
/// <summary>
/// Gets and sets the property MutualTlsAuthentication.
/// </summary>
public MutualTlsAuthenticationInput MutualTlsAuthentication
{
get { return this._mutualTlsAuthentication; }
set { this._mutualTlsAuthentication = value; }
}
// Check to see if MutualTlsAuthentication property is set
internal bool IsSetMutualTlsAuthentication()
{
return this._mutualTlsAuthentication != null;
}
/// <summary>
/// Gets and sets the property OwnershipVerificationCertificateArn.
/// <para>
/// The ARN of the public certificate issued by ACM to validate ownership of your custom
/// domain. Only required when configuring mutual TLS and using an ACM imported or private
/// CA certificate ARN as the regionalCertificateArn.
/// </para>
/// </summary>
public string OwnershipVerificationCertificateArn
{
get { return this._ownershipVerificationCertificateArn; }
set { this._ownershipVerificationCertificateArn = value; }
}
// Check to see if OwnershipVerificationCertificateArn property is set
internal bool IsSetOwnershipVerificationCertificateArn()
{
return this._ownershipVerificationCertificateArn != null;
}
/// <summary>
/// Gets and sets the property RegionalCertificateArn.
/// <para>
/// The reference to an AWS-managed certificate that will be used by regional endpoint
/// for this domain name. AWS Certificate Manager is the only supported source.
/// </para>
/// </summary>
public string RegionalCertificateArn
{
get { return this._regionalCertificateArn; }
set { this._regionalCertificateArn = value; }
}
// Check to see if RegionalCertificateArn property is set
internal bool IsSetRegionalCertificateArn()
{
return this._regionalCertificateArn != null;
}
/// <summary>
/// Gets and sets the property RegionalCertificateName.
/// <para>
/// The user-friendly name of the certificate that will be used by regional endpoint for
/// this domain name.
/// </para>
/// </summary>
public string RegionalCertificateName
{
get { return this._regionalCertificateName; }
set { this._regionalCertificateName = value; }
}
// Check to see if RegionalCertificateName property is set
internal bool IsSetRegionalCertificateName()
{
return this._regionalCertificateName != null;
}
/// <summary>
/// Gets and sets the property SecurityPolicy.
/// <para>
/// The Transport Layer Security (TLS) version + cipher suite for this DomainName. The
/// valid values are <code>TLS_1_0</code> and <code>TLS_1_2</code>.
/// </para>
/// </summary>
public SecurityPolicy SecurityPolicy
{
get { return this._securityPolicy; }
set { this._securityPolicy = value; }
}
// Check to see if SecurityPolicy property is set
internal bool IsSetSecurityPolicy()
{
return this._securityPolicy != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag
/// key can be up to 128 characters and must not start with <code>aws:</code>. The tag
/// value can be up to 256 characters.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 300 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents a custom domain name as a user-friendly host name of an API (RestApi).
/// </summary>
public partial class CreateDomainNameResponse : AmazonWebServiceResponse
{
private string _certificateArn;
private string _certificateName;
private DateTime? _certificateUploadDate;
private string _distributionDomainName;
private string _distributionHostedZoneId;
private DomainNameStatus _domainNameStatus;
private string _domainNameStatusMessage;
private EndpointConfiguration _endpointConfiguration;
private MutualTlsAuthentication _mutualTlsAuthentication;
private string _name;
private string _ownershipVerificationCertificateArn;
private string _regionalCertificateArn;
private string _regionalCertificateName;
private string _regionalDomainName;
private string _regionalHostedZoneId;
private SecurityPolicy _securityPolicy;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property CertificateArn.
/// <para>
/// The reference to an AWS-managed certificate that will be used by edge-optimized endpoint
/// for this domain name. AWS Certificate Manager is the only supported source.
/// </para>
/// </summary>
public string CertificateArn
{
get { return this._certificateArn; }
set { this._certificateArn = value; }
}
// Check to see if CertificateArn property is set
internal bool IsSetCertificateArn()
{
return this._certificateArn != null;
}
/// <summary>
/// Gets and sets the property CertificateName.
/// <para>
/// The name of the certificate that will be used by edge-optimized endpoint for this
/// domain name.
/// </para>
/// </summary>
public string CertificateName
{
get { return this._certificateName; }
set { this._certificateName = value; }
}
// Check to see if CertificateName property is set
internal bool IsSetCertificateName()
{
return this._certificateName != null;
}
/// <summary>
/// Gets and sets the property CertificateUploadDate.
/// <para>
/// The timestamp when the certificate that was used by edge-optimized endpoint for this
/// domain name was uploaded.
/// </para>
/// </summary>
public DateTime CertificateUploadDate
{
get { return this._certificateUploadDate.GetValueOrDefault(); }
set { this._certificateUploadDate = value; }
}
// Check to see if CertificateUploadDate property is set
internal bool IsSetCertificateUploadDate()
{
return this._certificateUploadDate.HasValue;
}
/// <summary>
/// Gets and sets the property DistributionDomainName.
/// <para>
/// The domain name of the Amazon CloudFront distribution associated with this custom
/// domain name for an edge-optimized endpoint. You set up this association when adding
/// a DNS record pointing the custom domain name to this distribution name. For more information
/// about CloudFront distributions, see the Amazon CloudFront documentation.
/// </para>
/// </summary>
public string DistributionDomainName
{
get { return this._distributionDomainName; }
set { this._distributionDomainName = value; }
}
// Check to see if DistributionDomainName property is set
internal bool IsSetDistributionDomainName()
{
return this._distributionDomainName != null;
}
/// <summary>
/// Gets and sets the property DistributionHostedZoneId.
/// <para>
/// The region-agnostic Amazon Route 53 Hosted Zone ID of the edge-optimized endpoint.
/// The valid value is <code>Z2FDTNDATAQYW2</code> for all the regions. For more information,
/// see Set up a Regional Custom Domain Name and AWS Regions and Endpoints for API Gateway.
///
/// </para>
/// </summary>
public string DistributionHostedZoneId
{
get { return this._distributionHostedZoneId; }
set { this._distributionHostedZoneId = value; }
}
// Check to see if DistributionHostedZoneId property is set
internal bool IsSetDistributionHostedZoneId()
{
return this._distributionHostedZoneId != null;
}
/// <summary>
/// Gets and sets the property DomainNameStatus.
/// <para>
/// The status of the DomainName migration. The valid values are <code>AVAILABLE</code>
/// and <code>UPDATING</code>. If the status is <code>UPDATING</code>, the domain cannot
/// be modified further until the existing operation is complete. If it is <code>AVAILABLE</code>,
/// the domain can be updated.
/// </para>
/// </summary>
public DomainNameStatus DomainNameStatus
{
get { return this._domainNameStatus; }
set { this._domainNameStatus = value; }
}
// Check to see if DomainNameStatus property is set
internal bool IsSetDomainNameStatus()
{
return this._domainNameStatus != null;
}
/// <summary>
/// Gets and sets the property DomainNameStatusMessage.
/// <para>
/// An optional text message containing detailed information about status of the DomainName
/// migration.
/// </para>
/// </summary>
public string DomainNameStatusMessage
{
get { return this._domainNameStatusMessage; }
set { this._domainNameStatusMessage = value; }
}
// Check to see if DomainNameStatusMessage property is set
internal bool IsSetDomainNameStatusMessage()
{
return this._domainNameStatusMessage != null;
}
/// <summary>
/// Gets and sets the property EndpointConfiguration.
/// <para>
/// The endpoint configuration of this DomainName showing the endpoint types of the domain
/// name.
/// </para>
/// </summary>
public EndpointConfiguration EndpointConfiguration
{
get { return this._endpointConfiguration; }
set { this._endpointConfiguration = value; }
}
// Check to see if EndpointConfiguration property is set
internal bool IsSetEndpointConfiguration()
{
return this._endpointConfiguration != null;
}
/// <summary>
/// Gets and sets the property MutualTlsAuthentication.
/// <para>
/// The mutual TLS authentication configuration for a custom domain name. If specified,
/// API Gateway performs two-way authentication between the client and the server. Clients
/// must present a trusted certificate to access your API.
/// </para>
/// </summary>
public MutualTlsAuthentication MutualTlsAuthentication
{
get { return this._mutualTlsAuthentication; }
set { this._mutualTlsAuthentication = value; }
}
// Check to see if MutualTlsAuthentication property is set
internal bool IsSetMutualTlsAuthentication()
{
return this._mutualTlsAuthentication != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The custom domain name as an API host name, for example, <code>my-api.example.com</code>.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property OwnershipVerificationCertificateArn.
/// <para>
/// The ARN of the public certificate issued by ACM to validate ownership of your custom
/// domain. Only required when configuring mutual TLS and using an ACM imported or private
/// CA certificate ARN as the regionalCertificateArn.
/// </para>
/// </summary>
public string OwnershipVerificationCertificateArn
{
get { return this._ownershipVerificationCertificateArn; }
set { this._ownershipVerificationCertificateArn = value; }
}
// Check to see if OwnershipVerificationCertificateArn property is set
internal bool IsSetOwnershipVerificationCertificateArn()
{
return this._ownershipVerificationCertificateArn != null;
}
/// <summary>
/// Gets and sets the property RegionalCertificateArn.
/// <para>
/// The reference to an AWS-managed certificate that will be used for validating the regional
/// domain name. AWS Certificate Manager is the only supported source.
/// </para>
/// </summary>
public string RegionalCertificateArn
{
get { return this._regionalCertificateArn; }
set { this._regionalCertificateArn = value; }
}
// Check to see if RegionalCertificateArn property is set
internal bool IsSetRegionalCertificateArn()
{
return this._regionalCertificateArn != null;
}
/// <summary>
/// Gets and sets the property RegionalCertificateName.
/// <para>
/// The name of the certificate that will be used for validating the regional domain name.
/// </para>
/// </summary>
public string RegionalCertificateName
{
get { return this._regionalCertificateName; }
set { this._regionalCertificateName = value; }
}
// Check to see if RegionalCertificateName property is set
internal bool IsSetRegionalCertificateName()
{
return this._regionalCertificateName != null;
}
/// <summary>
/// Gets and sets the property RegionalDomainName.
/// <para>
/// The domain name associated with the regional endpoint for this custom domain name.
/// You set up this association by adding a DNS record that points the custom domain name
/// to this regional domain name. The regional domain name is returned by API Gateway
/// when you create a regional endpoint.
/// </para>
/// </summary>
public string RegionalDomainName
{
get { return this._regionalDomainName; }
set { this._regionalDomainName = value; }
}
// Check to see if RegionalDomainName property is set
internal bool IsSetRegionalDomainName()
{
return this._regionalDomainName != null;
}
/// <summary>
/// Gets and sets the property RegionalHostedZoneId.
/// <para>
/// The region-specific Amazon Route 53 Hosted Zone ID of the regional endpoint. For more
/// information, see Set up a Regional Custom Domain Name and AWS Regions and Endpoints
/// for API Gateway.
/// </para>
/// </summary>
public string RegionalHostedZoneId
{
get { return this._regionalHostedZoneId; }
set { this._regionalHostedZoneId = value; }
}
// Check to see if RegionalHostedZoneId property is set
internal bool IsSetRegionalHostedZoneId()
{
return this._regionalHostedZoneId != null;
}
/// <summary>
/// Gets and sets the property SecurityPolicy.
/// <para>
/// The Transport Layer Security (TLS) version + cipher suite for this DomainName. The
/// valid values are <code>TLS_1_0</code> and <code>TLS_1_2</code>.
/// </para>
/// </summary>
public SecurityPolicy SecurityPolicy
{
get { return this._securityPolicy; }
set { this._securityPolicy = value; }
}
// Check to see if SecurityPolicy property is set
internal bool IsSetSecurityPolicy()
{
return this._securityPolicy != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
} | 386 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateModel operation.
/// Adds a new Model resource to an existing RestApi resource.
/// </summary>
public partial class CreateModelRequest : AmazonAPIGatewayRequest
{
private string _contentType;
private string _description;
private string _name;
private string _restApiId;
private string _schema;
/// <summary>
/// Gets and sets the property ContentType.
/// <para>
/// The content-type for the model.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the model.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the model. Must be alphanumeric.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The RestApi identifier under which the Model will be created.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property Schema.
/// <para>
/// The schema for the model. For <code>application/json</code> models, this should be
/// JSON schema draft 4 model.
/// </para>
/// </summary>
public string Schema
{
get { return this._schema; }
set { this._schema = value; }
}
// Check to see if Schema property is set
internal bool IsSetSchema()
{
return this._schema != null;
}
}
} | 138 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents the data structure of a method's request or response payload.
/// </summary>
public partial class CreateModelResponse : AmazonWebServiceResponse
{
private string _contentType;
private string _description;
private string _id;
private string _name;
private string _schema;
/// <summary>
/// Gets and sets the property ContentType.
/// <para>
/// The content-type for the model.
/// </para>
/// </summary>
public string ContentType
{
get { return this._contentType; }
set { this._contentType = value; }
}
// Check to see if ContentType property is set
internal bool IsSetContentType()
{
return this._contentType != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the model.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier for the model resource.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the model. Must be an alphanumeric string.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Schema.
/// <para>
/// The schema for the model. For <code>application/json</code> models, this should be
/// JSON schema draft 4 model. Do not include "\*/" characters in the description of any
/// properties because such "\*/" characters may be interpreted as the closing marker
/// for comments in some languages, such as Java or JavaScript, causing the installation
/// of your API's SDK generated by API Gateway to fail.
/// </para>
/// </summary>
public string Schema
{
get { return this._schema; }
set { this._schema = value; }
}
// Check to see if Schema property is set
internal bool IsSetSchema()
{
return this._schema != null;
}
}
} | 137 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateRequestValidator operation.
/// Creates a RequestValidator of a given RestApi.
/// </summary>
public partial class CreateRequestValidatorRequest : AmazonAPIGatewayRequest
{
private string _name;
private string _restApiId;
private bool? _validateRequestBody;
private bool? _validateRequestParameters;
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the to-be-created RequestValidator.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property ValidateRequestBody.
/// <para>
/// A Boolean flag to indicate whether to validate request body according to the configured
/// model schema for the method (<code>true</code>) or not (<code>false</code>).
/// </para>
/// </summary>
public bool ValidateRequestBody
{
get { return this._validateRequestBody.GetValueOrDefault(); }
set { this._validateRequestBody = value; }
}
// Check to see if ValidateRequestBody property is set
internal bool IsSetValidateRequestBody()
{
return this._validateRequestBody.HasValue;
}
/// <summary>
/// Gets and sets the property ValidateRequestParameters.
/// <para>
/// A Boolean flag to indicate whether to validate request parameters, <code>true</code>,
/// or not <code>false</code>.
/// </para>
/// </summary>
public bool ValidateRequestParameters
{
get { return this._validateRequestParameters.GetValueOrDefault(); }
set { this._validateRequestParameters = value; }
}
// Check to see if ValidateRequestParameters property is set
internal bool IsSetValidateRequestParameters()
{
return this._validateRequestParameters.HasValue;
}
}
} | 118 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// A set of validation rules for incoming Method requests.
/// </summary>
public partial class CreateRequestValidatorResponse : AmazonWebServiceResponse
{
private string _id;
private string _name;
private bool? _validateRequestBody;
private bool? _validateRequestParameters;
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The identifier of this RequestValidator.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of this RequestValidator
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property ValidateRequestBody.
/// <para>
/// A Boolean flag to indicate whether to validate a request body according to the configured
/// Model schema.
/// </para>
/// </summary>
public bool ValidateRequestBody
{
get { return this._validateRequestBody.GetValueOrDefault(); }
set { this._validateRequestBody = value; }
}
// Check to see if ValidateRequestBody property is set
internal bool IsSetValidateRequestBody()
{
return this._validateRequestBody.HasValue;
}
/// <summary>
/// Gets and sets the property ValidateRequestParameters.
/// <para>
/// A Boolean flag to indicate whether to validate request parameters (<code>true</code>)
/// or not (<code>false</code>).
/// </para>
/// </summary>
public bool ValidateRequestParameters
{
get { return this._validateRequestParameters.GetValueOrDefault(); }
set { this._validateRequestParameters = value; }
}
// Check to see if ValidateRequestParameters property is set
internal bool IsSetValidateRequestParameters()
{
return this._validateRequestParameters.HasValue;
}
}
} | 116 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateResource operation.
/// Creates a Resource resource.
/// </summary>
public partial class CreateResourceRequest : AmazonAPIGatewayRequest
{
private string _parentId;
private string _pathPart;
private string _restApiId;
/// <summary>
/// Gets and sets the property ParentId.
/// <para>
/// The parent resource's identifier.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ParentId
{
get { return this._parentId; }
set { this._parentId = value; }
}
// Check to see if ParentId property is set
internal bool IsSetParentId()
{
return this._parentId != null;
}
/// <summary>
/// Gets and sets the property PathPart.
/// <para>
/// The last path segment for this resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string PathPart
{
get { return this._pathPart; }
set { this._pathPart = value; }
}
// Check to see if PathPart property is set
internal bool IsSetPathPart()
{
return this._pathPart != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
}
} | 99 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents an API resource.
/// </summary>
public partial class CreateResourceResponse : AmazonWebServiceResponse
{
private string _id;
private string _parentId;
private string _path;
private string _pathPart;
private Dictionary<string, Method> _resourceMethods = new Dictionary<string, Method>();
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The resource's identifier.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property ParentId.
/// <para>
/// The parent resource's identifier.
/// </para>
/// </summary>
public string ParentId
{
get { return this._parentId; }
set { this._parentId = value; }
}
// Check to see if ParentId property is set
internal bool IsSetParentId()
{
return this._parentId != null;
}
/// <summary>
/// Gets and sets the property Path.
/// <para>
/// The full path for this resource.
/// </para>
/// </summary>
public string Path
{
get { return this._path; }
set { this._path = value; }
}
// Check to see if Path property is set
internal bool IsSetPath()
{
return this._path != null;
}
/// <summary>
/// Gets and sets the property PathPart.
/// <para>
/// The last path segment for this resource.
/// </para>
/// </summary>
public string PathPart
{
get { return this._pathPart; }
set { this._pathPart = value; }
}
// Check to see if PathPart property is set
internal bool IsSetPathPart()
{
return this._pathPart != null;
}
/// <summary>
/// Gets and sets the property ResourceMethods.
/// <para>
/// Gets an API resource's method of a given HTTP verb.
/// </para>
/// </summary>
public Dictionary<string, Method> ResourceMethods
{
get { return this._resourceMethods; }
set { this._resourceMethods = value; }
}
// Check to see if ResourceMethods property is set
internal bool IsSetResourceMethods()
{
return this._resourceMethods != null && this._resourceMethods.Count > 0;
}
}
} | 133 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateRestApi operation.
/// Creates a new RestApi resource.
/// </summary>
public partial class CreateRestApiRequest : AmazonAPIGatewayRequest
{
private ApiKeySourceType _apiKeySource;
private List<string> _binaryMediaTypes = new List<string>();
private string _cloneFrom;
private string _description;
private bool? _disableExecuteApiEndpoint;
private EndpointConfiguration _endpointConfiguration;
private int? _minimumCompressionSize;
private string _name;
private string _policy;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _version;
/// <summary>
/// Gets and sets the property ApiKeySource.
/// <para>
/// The source of the API key for metering requests according to a usage plan. Valid values
/// are: ><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header
/// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code>
/// from a custom authorizer.
/// </para>
/// </summary>
public ApiKeySourceType ApiKeySource
{
get { return this._apiKeySource; }
set { this._apiKeySource = value; }
}
// Check to see if ApiKeySource property is set
internal bool IsSetApiKeySource()
{
return this._apiKeySource != null;
}
/// <summary>
/// Gets and sets the property BinaryMediaTypes.
/// <para>
/// The list of binary media types supported by the RestApi. By default, the RestApi supports
/// only UTF-8-encoded text payloads.
/// </para>
/// </summary>
public List<string> BinaryMediaTypes
{
get { return this._binaryMediaTypes; }
set { this._binaryMediaTypes = value; }
}
// Check to see if BinaryMediaTypes property is set
internal bool IsSetBinaryMediaTypes()
{
return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property CloneFrom.
/// <para>
/// The ID of the RestApi that you want to clone from.
/// </para>
/// </summary>
public string CloneFrom
{
get { return this._cloneFrom; }
set { this._cloneFrom = value; }
}
// Check to see if CloneFrom property is set
internal bool IsSetCloneFrom()
{
return this._cloneFrom != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the RestApi.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property DisableExecuteApiEndpoint.
/// <para>
/// Specifies whether clients can invoke your API by using the default <code>execute-api</code>
/// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code>
/// endpoint. To require that clients use a custom domain name to invoke your API, disable
/// the default endpoint
/// </para>
/// </summary>
public bool DisableExecuteApiEndpoint
{
get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); }
set { this._disableExecuteApiEndpoint = value; }
}
// Check to see if DisableExecuteApiEndpoint property is set
internal bool IsSetDisableExecuteApiEndpoint()
{
return this._disableExecuteApiEndpoint.HasValue;
}
/// <summary>
/// Gets and sets the property EndpointConfiguration.
/// <para>
/// The endpoint configuration of this RestApi showing the endpoint types of the API.
///
/// </para>
/// </summary>
public EndpointConfiguration EndpointConfiguration
{
get { return this._endpointConfiguration; }
set { this._endpointConfiguration = value; }
}
// Check to see if EndpointConfiguration property is set
internal bool IsSetEndpointConfiguration()
{
return this._endpointConfiguration != null;
}
/// <summary>
/// Gets and sets the property MinimumCompressionSize.
/// <para>
/// A nullable integer that is used to enable compression (with non-negative between 0
/// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on
/// an API. When compression is enabled, compression or decompression is not applied on
/// the payload if the payload size is smaller than this value. Setting it to zero allows
/// compression for any payload size.
/// </para>
/// </summary>
public int MinimumCompressionSize
{
get { return this._minimumCompressionSize.GetValueOrDefault(); }
set { this._minimumCompressionSize = value; }
}
// Check to see if MinimumCompressionSize property is set
internal bool IsSetMinimumCompressionSize()
{
return this._minimumCompressionSize.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The name of the RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Policy.
/// <para>
/// A stringified JSON policy document that applies to this RestApi regardless of the
/// caller and Method configuration.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag
/// key can be up to 128 characters and must not start with <code>aws:</code>. The tag
/// value can be up to 256 characters.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// A version identifier for the API.
/// </para>
/// </summary>
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
}
} | 264 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Represents a REST API.
/// </summary>
public partial class CreateRestApiResponse : AmazonWebServiceResponse
{
private ApiKeySourceType _apiKeySource;
private List<string> _binaryMediaTypes = new List<string>();
private DateTime? _createdDate;
private string _description;
private bool? _disableExecuteApiEndpoint;
private EndpointConfiguration _endpointConfiguration;
private string _id;
private int? _minimumCompressionSize;
private string _name;
private string _policy;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _version;
private List<string> _warnings = new List<string>();
/// <summary>
/// Gets and sets the property ApiKeySource.
/// <para>
/// The source of the API key for metering requests according to a usage plan. Valid values
/// are: ><code>HEADER</code> to read the API key from the <code>X-API-Key</code> header
/// of a request. <code>AUTHORIZER</code> to read the API key from the <code>UsageIdentifierKey</code>
/// from a custom authorizer.
/// </para>
/// </summary>
public ApiKeySourceType ApiKeySource
{
get { return this._apiKeySource; }
set { this._apiKeySource = value; }
}
// Check to see if ApiKeySource property is set
internal bool IsSetApiKeySource()
{
return this._apiKeySource != null;
}
/// <summary>
/// Gets and sets the property BinaryMediaTypes.
/// <para>
/// The list of binary media types supported by the RestApi. By default, the RestApi supports
/// only UTF-8-encoded text payloads.
/// </para>
/// </summary>
public List<string> BinaryMediaTypes
{
get { return this._binaryMediaTypes; }
set { this._binaryMediaTypes = value; }
}
// Check to see if BinaryMediaTypes property is set
internal bool IsSetBinaryMediaTypes()
{
return this._binaryMediaTypes != null && this._binaryMediaTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property CreatedDate.
/// <para>
/// The timestamp when the API was created.
/// </para>
/// </summary>
public DateTime CreatedDate
{
get { return this._createdDate.GetValueOrDefault(); }
set { this._createdDate = value; }
}
// Check to see if CreatedDate property is set
internal bool IsSetCreatedDate()
{
return this._createdDate.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The API's description.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property DisableExecuteApiEndpoint.
/// <para>
/// Specifies whether clients can invoke your API by using the default <code>execute-api</code>
/// endpoint. By default, clients can invoke your API with the default <code>https://{api_id}.execute-api.{region}.amazonaws.com</code>
/// endpoint. To require that clients use a custom domain name to invoke your API, disable
/// the default endpoint.
/// </para>
/// </summary>
public bool DisableExecuteApiEndpoint
{
get { return this._disableExecuteApiEndpoint.GetValueOrDefault(); }
set { this._disableExecuteApiEndpoint = value; }
}
// Check to see if DisableExecuteApiEndpoint property is set
internal bool IsSetDisableExecuteApiEndpoint()
{
return this._disableExecuteApiEndpoint.HasValue;
}
/// <summary>
/// Gets and sets the property EndpointConfiguration.
/// <para>
/// The endpoint configuration of this RestApi showing the endpoint types of the API.
///
/// </para>
/// </summary>
public EndpointConfiguration EndpointConfiguration
{
get { return this._endpointConfiguration; }
set { this._endpointConfiguration = value; }
}
// Check to see if EndpointConfiguration property is set
internal bool IsSetEndpointConfiguration()
{
return this._endpointConfiguration != null;
}
/// <summary>
/// Gets and sets the property Id.
/// <para>
/// The API's identifier. This identifier is unique across all of your APIs in API Gateway.
/// </para>
/// </summary>
public string Id
{
get { return this._id; }
set { this._id = value; }
}
// Check to see if Id property is set
internal bool IsSetId()
{
return this._id != null;
}
/// <summary>
/// Gets and sets the property MinimumCompressionSize.
/// <para>
/// A nullable integer that is used to enable compression (with non-negative between 0
/// and 10485760 (10M) bytes, inclusive) or disable compression (with a null value) on
/// an API. When compression is enabled, compression or decompression is not applied on
/// the payload if the payload size is smaller than this value. Setting it to zero allows
/// compression for any payload size.
/// </para>
/// </summary>
public int MinimumCompressionSize
{
get { return this._minimumCompressionSize.GetValueOrDefault(); }
set { this._minimumCompressionSize = value; }
}
// Check to see if MinimumCompressionSize property is set
internal bool IsSetMinimumCompressionSize()
{
return this._minimumCompressionSize.HasValue;
}
/// <summary>
/// Gets and sets the property Name.
/// <para>
/// The API's name.
/// </para>
/// </summary>
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
/// <summary>
/// Gets and sets the property Policy.
/// <para>
/// A stringified JSON policy document that applies to this RestApi regardless of the
/// caller and Method configuration.
/// </para>
/// </summary>
public string Policy
{
get { return this._policy; }
set { this._policy = value; }
}
// Check to see if Policy property is set
internal bool IsSetPolicy()
{
return this._policy != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The collection of tags. Each tag element is associated with a given resource.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Version.
/// <para>
/// A version identifier for the API.
/// </para>
/// </summary>
public string Version
{
get { return this._version; }
set { this._version = value; }
}
// Check to see if Version property is set
internal bool IsSetVersion()
{
return this._version != null;
}
/// <summary>
/// Gets and sets the property Warnings.
/// <para>
/// The warning messages reported when <code>failonwarnings</code> is turned on during
/// API import.
/// </para>
/// </summary>
public List<string> Warnings
{
get { return this._warnings; }
set { this._warnings = value; }
}
// Check to see if Warnings property is set
internal bool IsSetWarnings()
{
return this._warnings != null && this._warnings.Count > 0;
}
}
} | 299 |
aws-sdk-net | aws | C# | /*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the apigateway-2015-07-09.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.APIGateway.Model
{
/// <summary>
/// Container for the parameters to the CreateStage operation.
/// Creates a new Stage resource that references a pre-existing Deployment for the API.
/// </summary>
public partial class CreateStageRequest : AmazonAPIGatewayRequest
{
private bool? _cacheClusterEnabled;
private CacheClusterSize _cacheClusterSize;
private CanarySettings _canarySettings;
private string _deploymentId;
private string _description;
private string _documentationVersion;
private string _restApiId;
private string _stageName;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private bool? _tracingEnabled;
private Dictionary<string, string> _variables = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property CacheClusterEnabled.
/// <para>
/// Whether cache clustering is enabled for the stage.
/// </para>
/// </summary>
public bool CacheClusterEnabled
{
get { return this._cacheClusterEnabled.GetValueOrDefault(); }
set { this._cacheClusterEnabled = value; }
}
// Check to see if CacheClusterEnabled property is set
internal bool IsSetCacheClusterEnabled()
{
return this._cacheClusterEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property CacheClusterSize.
/// <para>
/// The stage's cache capacity in GB. For more information about choosing a cache size,
/// see <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-caching.html">Enabling
/// API caching to enhance responsiveness</a>.
/// </para>
/// </summary>
public CacheClusterSize CacheClusterSize
{
get { return this._cacheClusterSize; }
set { this._cacheClusterSize = value; }
}
// Check to see if CacheClusterSize property is set
internal bool IsSetCacheClusterSize()
{
return this._cacheClusterSize != null;
}
/// <summary>
/// Gets and sets the property CanarySettings.
/// <para>
/// The canary deployment settings of this stage.
/// </para>
/// </summary>
public CanarySettings CanarySettings
{
get { return this._canarySettings; }
set { this._canarySettings = value; }
}
// Check to see if CanarySettings property is set
internal bool IsSetCanarySettings()
{
return this._canarySettings != null;
}
/// <summary>
/// Gets and sets the property DeploymentId.
/// <para>
/// The identifier of the Deployment resource for the Stage resource.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DeploymentId
{
get { return this._deploymentId; }
set { this._deploymentId = value; }
}
// Check to see if DeploymentId property is set
internal bool IsSetDeploymentId()
{
return this._deploymentId != null;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// The description of the Stage resource.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property DocumentationVersion.
/// <para>
/// The version of the associated API documentation.
/// </para>
/// </summary>
public string DocumentationVersion
{
get { return this._documentationVersion; }
set { this._documentationVersion = value; }
}
// Check to see if DocumentationVersion property is set
internal bool IsSetDocumentationVersion()
{
return this._documentationVersion != null;
}
/// <summary>
/// Gets and sets the property RestApiId.
/// <para>
/// The string identifier of the associated RestApi.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string RestApiId
{
get { return this._restApiId; }
set { this._restApiId = value; }
}
// Check to see if RestApiId property is set
internal bool IsSetRestApiId()
{
return this._restApiId != null;
}
/// <summary>
/// Gets and sets the property StageName.
/// <para>
/// The name for the Stage resource. Stage names can only contain alphanumeric characters,
/// hyphens, and underscores. Maximum length is 128 characters.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string StageName
{
get { return this._stageName; }
set { this._stageName = value; }
}
// Check to see if StageName property is set
internal bool IsSetStageName()
{
return this._stageName != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag
/// key can be up to 128 characters and must not start with <code>aws:</code>. The tag
/// value can be up to 256 characters.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property TracingEnabled.
/// <para>
/// Specifies whether active tracing with X-ray is enabled for the Stage.
/// </para>
/// </summary>
public bool TracingEnabled
{
get { return this._tracingEnabled.GetValueOrDefault(); }
set { this._tracingEnabled = value; }
}
// Check to see if TracingEnabled property is set
internal bool IsSetTracingEnabled()
{
return this._tracingEnabled.HasValue;
}
/// <summary>
/// Gets and sets the property Variables.
/// <para>
/// A map that defines the stage variables for the new Stage resource. Variable names
/// can have alphanumeric and underscore characters, and the values must match <code>[A-Za-z0-9-._~:/?#&=,]+</code>.
/// </para>
/// </summary>
public Dictionary<string, string> Variables
{
get { return this._variables; }
set { this._variables = value; }
}
// Check to see if Variables property is set
internal bool IsSetVariables()
{
return this._variables != null && this._variables.Count > 0;
}
}
} | 257 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.