/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a RAM managed permission.See Also:
AWS
* API Reference
The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline ResourceSharePermissionDetail& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline ResourceSharePermissionDetail& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The Amazon * Resource Name (ARN) of this RAM managed permission.
*/ inline ResourceSharePermissionDetail& WithArn(const char* value) { SetArn(value); return *this;} /** *The version of the permission described in this response.
*/ inline const Aws::String& GetVersion() const{ return m_version; } /** *The version of the permission described in this response.
*/ inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; } /** *The version of the permission described in this response.
*/ inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; } /** *The version of the permission described in this response.
*/ inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); } /** *The version of the permission described in this response.
*/ inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); } /** *The version of the permission described in this response.
*/ inline ResourceSharePermissionDetail& WithVersion(const Aws::String& value) { SetVersion(value); return *this;} /** *The version of the permission described in this response.
*/ inline ResourceSharePermissionDetail& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;} /** *The version of the permission described in this response.
*/ inline ResourceSharePermissionDetail& WithVersion(const char* value) { SetVersion(value); return *this;} /** *Specifies whether the version of the permission represented in this response * is the default version for this permission.
*/ inline bool GetDefaultVersion() const{ return m_defaultVersion; } /** *Specifies whether the version of the permission represented in this response * is the default version for this permission.
*/ inline bool DefaultVersionHasBeenSet() const { return m_defaultVersionHasBeenSet; } /** *Specifies whether the version of the permission represented in this response * is the default version for this permission.
*/ inline void SetDefaultVersion(bool value) { m_defaultVersionHasBeenSet = true; m_defaultVersion = value; } /** *Specifies whether the version of the permission represented in this response * is the default version for this permission.
*/ inline ResourceSharePermissionDetail& WithDefaultVersion(bool value) { SetDefaultVersion(value); return *this;} /** *The name of this permission.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of this permission.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of this permission.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of this permission.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of this permission.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of this permission.
*/ inline ResourceSharePermissionDetail& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of this permission.
*/ inline ResourceSharePermissionDetail& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of this permission.
*/ inline ResourceSharePermissionDetail& WithName(const char* value) { SetName(value); return *this;} /** *The resource type to which this permission applies.
*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *The resource type to which this permission applies.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The resource type to which this permission applies.
*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The resource type to which this permission applies.
*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The resource type to which this permission applies.
*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *The resource type to which this permission applies.
*/ inline ResourceSharePermissionDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *The resource type to which this permission applies.
*/ inline ResourceSharePermissionDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *The resource type to which this permission applies.
*/ inline ResourceSharePermissionDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;} /** *The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The permission's effect and actions in JSON format. The effect
* indicates whether the specified actions are allowed or denied. The
* actions
list the operations to which the principal is granted or
* denied access.
The date and time when the permission was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *The date and time when the permission was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time when the permission was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The date and time when the permission was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The date and time when the permission was created.
*/ inline ResourceSharePermissionDetail& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *The date and time when the permission was created.
*/ inline ResourceSharePermissionDetail& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time when the permission was last updated.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *The date and time when the permission was last updated.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *The date and time when the permission was last updated.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *The date and time when the permission was last updated.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *The date and time when the permission was last updated.
*/ inline ResourceSharePermissionDetail& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *The date and time when the permission was last updated.
*/ inline ResourceSharePermissionDetail& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} /** *Specifies whether the version of the permission represented in this response * is the default version for all resources of this resource type.
*/ inline bool GetIsResourceTypeDefault() const{ return m_isResourceTypeDefault; } /** *Specifies whether the version of the permission represented in this response * is the default version for all resources of this resource type.
*/ inline bool IsResourceTypeDefaultHasBeenSet() const { return m_isResourceTypeDefaultHasBeenSet; } /** *Specifies whether the version of the permission represented in this response * is the default version for all resources of this resource type.
*/ inline void SetIsResourceTypeDefault(bool value) { m_isResourceTypeDefaultHasBeenSet = true; m_isResourceTypeDefault = value; } /** *Specifies whether the version of the permission represented in this response * is the default version for all resources of this resource type.
*/ inline ResourceSharePermissionDetail& WithIsResourceTypeDefault(bool value) { SetIsResourceTypeDefault(value); return *this;} /** *The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
The type of managed permission. This can be one of the following values:
* AWS_MANAGED
– Amazon Web Services created and manages
* this managed permission. You can associate it with your resource shares, but you
* can't modify it.
CUSTOMER_MANAGED
– You, or
* another principal in your account created this managed permission. You can
* associate it with your resource shares and create new versions that have
* different permissions.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
Indicates what features are available for this resource share. This parameter * can have one of the following values:
STANDARD – A * resource share that supports all functionality. These resource shares are * visible to all principals you share the resource share with. You can modify * these resource shares in RAM using the console or APIs. This resource share * might have been created by RAM, or it might have been CREATED_FROM_POLICY * and then promoted.
CREATED_FROM_POLICY – The customer * manually shared a resource by attaching a resource-based policy. That policy did * not match any existing managed permissions, so RAM created this customer managed * permission automatically on the customer's behalf based on the attached policy * document. This type of resource share is visible only to the Amazon Web Services * account that created it. You can't modify it in RAM unless you promote it. For * more information, see PromoteResourceShareCreatedFromPolicy.
PROMOTING_TO_STANDARD – This resource share was originally
* CREATED_FROM_POLICY
, but the customer ran the
* PromoteResourceShareCreatedFromPolicy and that operation is still in
* progress. This value changes to STANDARD
when complete.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The current status of the association between the permission and the resource * share. The following are the possible values:
* ATTACHABLE
– This permission or version can be associated with
* resource shares.
UNATTACHABLE
– This permission
* or version can't currently be associated with resource shares.
DELETING
– This permission or version is in the process of
* being deleted.
DELETED
– This permission or
* version is deleted.
The tag key and value pairs attached to the resource share.
*/ inline const Aws::VectorThe tag key and value pairs attached to the resource share.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tag key and value pairs attached to the resource share.
*/ inline void SetTags(const Aws::VectorThe tag key and value pairs attached to the resource share.
*/ inline void SetTags(Aws::VectorThe tag key and value pairs attached to the resource share.
*/ inline ResourceSharePermissionDetail& WithTags(const Aws::VectorThe tag key and value pairs attached to the resource share.
*/ inline ResourceSharePermissionDetail& WithTags(Aws::VectorThe tag key and value pairs attached to the resource share.
*/ inline ResourceSharePermissionDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *The tag key and value pairs attached to the resource share.
*/ inline ResourceSharePermissionDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_version; bool m_versionHasBeenSet = false; bool m_defaultVersion; bool m_defaultVersionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_permission; bool m_permissionHasBeenSet = false; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; bool m_isResourceTypeDefault; bool m_isResourceTypeDefaultHasBeenSet = false; PermissionType m_permissionType; bool m_permissionTypeHasBeenSet = false; PermissionFeatureSet m_featureSet; bool m_featureSetHasBeenSet = false; PermissionStatus m_status; bool m_statusHasBeenSet = false; Aws::Vector