Lesson 35 - Get Compute Auth Token Working

This commit is contained in:
Norman Lansing
2026-02-28 12:32:28 -05:00
parent 1d477ee42a
commit 4fde462bce
7743 changed files with 1397833 additions and 18 deletions

View File

@@ -0,0 +1,134 @@
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/ssm/SSM_EXPORTS.h>
#include <aws/ssm/SSMRequest.h>
#include <aws/core/utils/memory/stl/AWSVector.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/ssm/model/ParametersFilter.h>
#include <aws/ssm/model/ParameterStringFilter.h>
#include <utility>
namespace Aws
{
namespace SSM
{
namespace Model
{
/**
*/
class DescribeParametersRequest : public SSMRequest
{
public:
AWS_SSM_API DescribeParametersRequest();
// Service request name is the Operation name which will send this request out,
// each operation should has unique request name, so that we can get operation's name from this request.
// Note: this is not true for response, multiple operations may have the same response name,
// so we can not get operation's name from response.
inline virtual const char* GetServiceRequestName() const override { return "DescribeParameters"; }
AWS_SSM_API Aws::String SerializePayload() const override;
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
///@{
/**
* <p>This data type is deprecated. Instead, use <code>ParameterFilters</code>.</p>
*/
inline const Aws::Vector<ParametersFilter>& GetFilters() const{ return m_filters; }
inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
inline void SetFilters(const Aws::Vector<ParametersFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
inline void SetFilters(Aws::Vector<ParametersFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
inline DescribeParametersRequest& WithFilters(const Aws::Vector<ParametersFilter>& value) { SetFilters(value); return *this;}
inline DescribeParametersRequest& WithFilters(Aws::Vector<ParametersFilter>&& value) { SetFilters(std::move(value)); return *this;}
inline DescribeParametersRequest& AddFilters(const ParametersFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
inline DescribeParametersRequest& AddFilters(ParametersFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
///@}
///@{
/**
* <p>Filters to limit the request results.</p>
*/
inline const Aws::Vector<ParameterStringFilter>& GetParameterFilters() const{ return m_parameterFilters; }
inline bool ParameterFiltersHasBeenSet() const { return m_parameterFiltersHasBeenSet; }
inline void SetParameterFilters(const Aws::Vector<ParameterStringFilter>& value) { m_parameterFiltersHasBeenSet = true; m_parameterFilters = value; }
inline void SetParameterFilters(Aws::Vector<ParameterStringFilter>&& value) { m_parameterFiltersHasBeenSet = true; m_parameterFilters = std::move(value); }
inline DescribeParametersRequest& WithParameterFilters(const Aws::Vector<ParameterStringFilter>& value) { SetParameterFilters(value); return *this;}
inline DescribeParametersRequest& WithParameterFilters(Aws::Vector<ParameterStringFilter>&& value) { SetParameterFilters(std::move(value)); return *this;}
inline DescribeParametersRequest& AddParameterFilters(const ParameterStringFilter& value) { m_parameterFiltersHasBeenSet = true; m_parameterFilters.push_back(value); return *this; }
inline DescribeParametersRequest& AddParameterFilters(ParameterStringFilter&& value) { m_parameterFiltersHasBeenSet = true; m_parameterFilters.push_back(std::move(value)); return *this; }
///@}
///@{
/**
* <p>The maximum number of items to return for this call. The call also returns a
* token that you can specify in a subsequent call to get the next set of
* results.</p>
*/
inline int GetMaxResults() const{ return m_maxResults; }
inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
inline DescribeParametersRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
///@}
///@{
/**
* <p>The token for the next set of items to return. (You received this token from
* a previous call.)</p>
*/
inline const Aws::String& GetNextToken() const{ return m_nextToken; }
inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
inline DescribeParametersRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
inline DescribeParametersRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
inline DescribeParametersRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
///@}
///@{
/**
* <p>Lists parameters that are shared with you.</p> <p>By default when
* using this option, the command returns parameters that have been shared using a
* standard Resource Access Manager Resource Share. In order for a parameter that
* was shared using the <a>PutResourcePolicy</a> command to be returned, the
* associated <code>RAM Resource Share Created From Policy</code> must have been
* promoted to a standard Resource Share using the RAM <a
* href="https://docs.aws.amazon.com/ram/latest/APIReference/API_PromoteResourceShareCreatedFromPolicy.html">PromoteResourceShareCreatedFromPolicy</a>
* API operation.</p> <p>For more information about sharing parameters, see <a
* href="https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-shared-parameters.html">Working
* with shared parameters</a> in the <i>Amazon Web Services Systems Manager User
* Guide</i>.</p>
*/
inline bool GetShared() const{ return m_shared; }
inline bool SharedHasBeenSet() const { return m_sharedHasBeenSet; }
inline void SetShared(bool value) { m_sharedHasBeenSet = true; m_shared = value; }
inline DescribeParametersRequest& WithShared(bool value) { SetShared(value); return *this;}
///@}
private:
Aws::Vector<ParametersFilter> m_filters;
bool m_filtersHasBeenSet = false;
Aws::Vector<ParameterStringFilter> m_parameterFilters;
bool m_parameterFiltersHasBeenSet = false;
int m_maxResults;
bool m_maxResultsHasBeenSet = false;
Aws::String m_nextToken;
bool m_nextTokenHasBeenSet = false;
bool m_shared;
bool m_sharedHasBeenSet = false;
};
} // namespace Model
} // namespace SSM
} // namespace Aws