Skip to content

Commit

Permalink
Introduced support for G6 instance types on Sagemaker Notebook Instan…
Browse files Browse the repository at this point in the history
…ces and on SageMaker Studio for JupyterLab and CodeEditor applications.

Mark ComponentVersion in ComponentDeploymentSpecification as required.
Updated request parameters for PKCE support.
add v2 smoke tests and smithy smokeTests trait for SDK testing
  • Loading branch information
aws-sdk-cpp-automation committed May 10, 2024
1 parent 2fedad7 commit 0097ac5
Show file tree
Hide file tree
Showing 34 changed files with 1,534 additions and 255 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.11.325
1.11.326
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,10 @@ namespace GreengrassV2
* an Lambda function that runs on IoT Greengrass. This creates a recipe and
* artifacts from the Lambda function's deployment package. You can use this
* operation to migrate Lambda functions from IoT Greengrass V1 to IoT Greengrass
* V2.</p> <p>This function only accepts Lambda functions that use the following
* runtimes:</p> <ul> <li> <p>Python 2.7 – <code>python2.7</code> </p> </li> <li>
* <p>Python 3.7 – <code>python3.7</code> </p> </li> <li> <p>Python 3.8 –
* <code>python3.8</code> </p> </li> <li> <p>Python 3.9 – <code>python3.9</code>
* </p> </li> <li> <p>Java 8 – <code>java8</code> </p> </li> <li> <p>Java 11 –
* <code>java11</code> </p> </li> <li> <p>Node.js 10 – <code>nodejs10.x</code> </p>
* </li> <li> <p>Node.js 12 – <code>nodejs12.x</code> </p> </li> <li> <p>Node.js 14
* – <code>nodejs14.x</code> </p> </li> </ul> <p>To create a component from a
* Lambda function, specify <code>lambdaFunction</code> when you call this
* V2.</p> <p>This function accepts Lambda functions in all supported versions of
* Python, Node.js, and Java runtimes. IoT Greengrass doesn't apply any additional
* restrictions on deprecated Lambda runtime versions.</p> <p>To create a component
* from a Lambda function, specify <code>lambdaFunction</code> when you call this
* operation.</p> <p>IoT Greengrass currently supports Lambda functions on
* only Linux core devices.</p> </li> </ul><p><h3>See Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/greengrassv2-2020-11-30/CreateComponentVersion">AWS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,16 @@
#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
#include <aws/greengrassv2/GreengrassV2Request.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/greengrassv2/model/S3EndpointType.h>
#include <aws/greengrassv2/model/IotEndpointType.h>
#include <utility>

namespace Aws
{
namespace Http
{
class URI;
} //namespace Http
namespace GreengrassV2
{
namespace Model
Expand All @@ -31,6 +37,10 @@ namespace Model

AWS_GREENGRASSV2_API Aws::String SerializePayload() const override;

AWS_GREENGRASSV2_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;

AWS_GREENGRASSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;


/**
* <p>The <a
Expand Down Expand Up @@ -177,13 +187,123 @@ namespace Model
*/
inline GetComponentVersionArtifactRequest& WithArtifactName(const char* value) { SetArtifactName(value); return *this;}


/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline const S3EndpointType& GetS3EndpointType() const{ return m_s3EndpointType; }

/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline bool S3EndpointTypeHasBeenSet() const { return m_s3EndpointTypeHasBeenSet; }

/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline void SetS3EndpointType(const S3EndpointType& value) { m_s3EndpointTypeHasBeenSet = true; m_s3EndpointType = value; }

/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline void SetS3EndpointType(S3EndpointType&& value) { m_s3EndpointTypeHasBeenSet = true; m_s3EndpointType = std::move(value); }

/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline GetComponentVersionArtifactRequest& WithS3EndpointType(const S3EndpointType& value) { SetS3EndpointType(value); return *this;}

/**
* <p>Specifies the endpoint to use when getting Amazon S3 pre-signed URLs.</p>
* <p>All Amazon Web Services Regions except US East (N. Virginia) use
* <code>REGIONAL</code> in all cases. In the US East (N. Virginia) Region the
* default is <code>GLOBAL</code>, but you can change it to <code>REGIONAL</code>
* with this parameter.</p>
*/
inline GetComponentVersionArtifactRequest& WithS3EndpointType(S3EndpointType&& value) { SetS3EndpointType(std::move(value)); return *this;}


/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline const IotEndpointType& GetIotEndpointType() const{ return m_iotEndpointType; }

/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline bool IotEndpointTypeHasBeenSet() const { return m_iotEndpointTypeHasBeenSet; }

/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline void SetIotEndpointType(const IotEndpointType& value) { m_iotEndpointTypeHasBeenSet = true; m_iotEndpointType = value; }

/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline void SetIotEndpointType(IotEndpointType&& value) { m_iotEndpointTypeHasBeenSet = true; m_iotEndpointType = std::move(value); }

/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline GetComponentVersionArtifactRequest& WithIotEndpointType(const IotEndpointType& value) { SetIotEndpointType(value); return *this;}

/**
* <p>Determines if the Amazon S3 URL returned is a FIPS pre-signed URL endpoint.
* Specify <code>fips</code> if you want the returned Amazon S3 pre-signed URL to
* point to an Amazon S3 FIPS endpoint. If you don't specify a value, the default
* is <code>standard</code>.</p>
*/
inline GetComponentVersionArtifactRequest& WithIotEndpointType(IotEndpointType&& value) { SetIotEndpointType(std::move(value)); return *this;}

private:

Aws::String m_arn;
bool m_arnHasBeenSet = false;

Aws::String m_artifactName;
bool m_artifactNameHasBeenSet = false;

S3EndpointType m_s3EndpointType;
bool m_s3EndpointTypeHasBeenSet = false;

IotEndpointType m_iotEndpointType;
bool m_iotEndpointTypeHasBeenSet = false;
};

} // namespace Model
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,80 +325,80 @@ namespace Model
/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline const Aws::String& GetLastInstallationSource() const{ return m_lastInstallationSource; }

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline bool LastInstallationSourceHasBeenSet() const { return m_lastInstallationSourceHasBeenSet; }

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline void SetLastInstallationSource(const Aws::String& value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource = value; }

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline void SetLastInstallationSource(Aws::String&& value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource = std::move(value); }

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline void SetLastInstallationSource(const char* value) { m_lastInstallationSourceHasBeenSet = true; m_lastInstallationSource.assign(value); }

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline InstalledComponent& WithLastInstallationSource(const Aws::String& value) { SetLastInstallationSource(value); return *this;}

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline InstalledComponent& WithLastInstallationSource(Aws::String&& value) { SetLastInstallationSource(std::move(value)); return *this;}

/**
* <p>The most recent deployment source that brought the component to the
* Greengrass core device. For a thing group deployment or thing deployment, the
* source will be the The ID of the deployment. and for local deployments it will
* be <code>LOCAL</code>.</p> <p>Any deployment will attempt to reinstall
* currently broken components on the device, which will update the last
* installation source.</p>
* source will be the ID of the last deployment that contained the component. For
* local deployments it will be <code>LOCAL</code>.</p> <p>Any deployment
* will attempt to reinstall currently broken components on the device, which will
* update the last installation source.</p>
*/
inline InstalledComponent& WithLastInstallationSource(const char* value) { SetLastInstallationSource(value); return *this;}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace GreengrassV2
{
namespace Model
{
enum class IotEndpointType
{
NOT_SET,
fips,
standard
};

namespace IotEndpointTypeMapper
{
AWS_GREENGRASSV2_API IotEndpointType GetIotEndpointTypeForName(const Aws::String& name);

AWS_GREENGRASSV2_API Aws::String GetNameForIotEndpointType(IotEndpointType value);
} // namespace IotEndpointTypeMapper
} // namespace Model
} // namespace GreengrassV2
} // namespace Aws
Original file line number Diff line number Diff line change
Expand Up @@ -210,21 +210,25 @@ namespace Model

/**
* <p>The maximum number of results to be returned per paginated request.</p>
* <p>Default: <code>50</code> </p>
*/
inline int GetMaxResults() const{ return m_maxResults; }

/**
* <p>The maximum number of results to be returned per paginated request.</p>
* <p>Default: <code>50</code> </p>
*/
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }

/**
* <p>The maximum number of results to be returned per paginated request.</p>
* <p>Default: <code>50</code> </p>
*/
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }

/**
* <p>The maximum number of results to be returned per paginated request.</p>
* <p>Default: <code>50</code> </p>
*/
inline ListDeploymentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/

#pragma once
#include <aws/greengrassv2/GreengrassV2_EXPORTS.h>
#include <aws/core/utils/memory/stl/AWSString.h>

namespace Aws
{
namespace GreengrassV2
{
namespace Model
{
enum class S3EndpointType
{
NOT_SET,
REGIONAL,
GLOBAL
};

namespace S3EndpointTypeMapper
{
AWS_GREENGRASSV2_API S3EndpointType GetS3EndpointTypeForName(const Aws::String& name);

AWS_GREENGRASSV2_API Aws::String GetNameForS3EndpointType(S3EndpointType value);
} // namespace S3EndpointTypeMapper
} // namespace Model
} // namespace GreengrassV2
} // namespace Aws
Loading

0 comments on commit 0097ac5

Please sign in to comment.