169 lines
7.3 KiB
C++
169 lines
7.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iam/IAM_EXPORTS.h>
|
|
#include <aws/iam/IAMRequest.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/iam/model/AccessAdvisorUsageGranularityType.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace IAM
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
*/
|
|
class AWS_IAM_API GenerateServiceLastAccessedDetailsRequest : public IAMRequest
|
|
{
|
|
public:
|
|
GenerateServiceLastAccessedDetailsRequest();
|
|
|
|
// 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 "GenerateServiceLastAccessedDetails"; }
|
|
|
|
Aws::String SerializePayload() const override;
|
|
|
|
protected:
|
|
void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
|
|
|
|
public:
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline const Aws::String& GetArn() const{ return m_arn; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline GenerateServiceLastAccessedDetailsRequest& WithArn(const Aws::String& value) { SetArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline GenerateServiceLastAccessedDetailsRequest& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The ARN of the IAM resource (user, group, role, or managed policy) used to
|
|
* generate information about when the resource was last used in an attempt to
|
|
* access an AWS service.</p>
|
|
*/
|
|
inline GenerateServiceLastAccessedDetailsRequest& WithArn(const char* value) { SetArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline const AccessAdvisorUsageGranularityType& GetGranularity() const{ return m_granularity; }
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline bool GranularityHasBeenSet() const { return m_granularityHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline void SetGranularity(const AccessAdvisorUsageGranularityType& value) { m_granularityHasBeenSet = true; m_granularity = value; }
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline void SetGranularity(AccessAdvisorUsageGranularityType&& value) { m_granularityHasBeenSet = true; m_granularity = std::move(value); }
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline GenerateServiceLastAccessedDetailsRequest& WithGranularity(const AccessAdvisorUsageGranularityType& value) { SetGranularity(value); return *this;}
|
|
|
|
/**
|
|
* <p>The level of detail that you want to generate. You can specify whether you
|
|
* want to generate information about the last attempt to access services or
|
|
* actions. If you specify service-level granularity, this operation generates only
|
|
* service data. If you specify action-level granularity, it generates service and
|
|
* action data. If you don't include this optional parameter, the operation
|
|
* generates service data.</p>
|
|
*/
|
|
inline GenerateServiceLastAccessedDetailsRequest& WithGranularity(AccessAdvisorUsageGranularityType&& value) { SetGranularity(std::move(value)); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_arn;
|
|
bool m_arnHasBeenSet;
|
|
|
|
AccessAdvisorUsageGranularityType m_granularity;
|
|
bool m_granularityHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IAM
|
|
} // namespace Aws
|