amazonka-ram-2.0: Amazon Resource Access Manager SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.RAM.Lens

Description

 
Synopsis

Operations

AcceptResourceShareInvitation

acceptResourceShareInvitation_clientToken :: Lens' AcceptResourceShareInvitation (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

acceptResourceShareInvitationResponse_clientToken :: Lens' AcceptResourceShareInvitationResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

AssociateResourceShare

associateResourceShare_clientToken :: Lens' AssociateResourceShare (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

associateResourceShare_principals :: Lens' AssociateResourceShare (Maybe [Text]) Source #

Specifies a list of principals to whom you want to the resource share. This can be null if you want to add only resources.

What the principals can do with the resources in the share is determined by the RAM permissions that you associate with the resource share. See AssociateResourceSharePermission.

You can include the following values:

  • An Amazon Web Services account ID, for example: 123456789012
  • An Amazon Resoure Name (ARN) of an organization in Organizations, for example: organizations::123456789012:organization/o-exampleorgid
  • An ARN of an organizational unit (OU) in Organizations, for example: organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
  • An ARN of an IAM role, for example: iam::123456789012:role/rolename
  • An ARN of an IAM user, for example: iam::123456789012user/username

Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.

associateResourceShare_resourceArns :: Lens' AssociateResourceShare (Maybe [Text]) Source #

Specifies a list of Amazon Resource Names (ARNs) of the resources that you want to share. This can be null if you want to add only principals.

associateResourceShare_resourceShareArn :: Lens' AssociateResourceShare Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add principals or resources to.

associateResourceShareResponse_clientToken :: Lens' AssociateResourceShareResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

AssociateResourceSharePermission

associateResourceSharePermission_clientToken :: Lens' AssociateResourceSharePermission (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

associateResourceSharePermission_permissionVersion :: Lens' AssociateResourceSharePermission (Maybe Int) Source #

Specifies the version of the RAM permission to associate with the resource share. If you don't specify this parameter, the operation uses the version designated as the default. You can use the ListPermissionVersions operation to discover the available versions of a permission.

associateResourceSharePermission_replace :: Lens' AssociateResourceSharePermission (Maybe Bool) Source #

Specifies whether the specified permission should replace or add to the existing permission associated with the resource share. Use true to replace the current permissions. Use false to add the permission to the current permission. The default value is false.

A resource share can have only one permission per resource type. If a resource share already has a permission for the specified resource type and you don't set replace to true then the operation returns an error. This helps prevent accidental overwriting of a permission.

associateResourceSharePermission_resourceShareArn :: Lens' AssociateResourceSharePermission Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share to which you want to add or replace permissions.

associateResourceSharePermission_permissionArn :: Lens' AssociateResourceSharePermission Text Source #

Specifies the Amazon Resoure Name (ARN) of the RAM permission to associate with the resource share. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.

associateResourceSharePermissionResponse_clientToken :: Lens' AssociateResourceSharePermissionResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

associateResourceSharePermissionResponse_returnValue :: Lens' AssociateResourceSharePermissionResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

CreateResourceShare

createResourceShare_allowExternalPrincipals :: Lens' CreateResourceShare (Maybe Bool) Source #

Specifies whether principals outside your organization in Organizations can be associated with a resource share. A value of true lets you share with individual Amazon Web Services accounts that are not in your organization. A value of false only has meaning if your account is a member of an Amazon Web Services Organization. The default value is true.

createResourceShare_clientToken :: Lens' CreateResourceShare (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

createResourceShare_permissionArns :: Lens' CreateResourceShare (Maybe [Text]) Source #

Specifies the Amazon Resource Names (ARNs) of the RAM permission to associate with the resource share. If you do not specify an ARN for the permission, RAM automatically attaches the default version of the permission for each resource type. You can associate only one permission with each resource type included in the resource share.

createResourceShare_principals :: Lens' CreateResourceShare (Maybe [Text]) Source #

Specifies a list of one or more principals to associate with the resource share.

You can include the following values:

  • An Amazon Web Services account ID, for example: 123456789012
  • An Amazon Resoure Name (ARN) of an organization in Organizations, for example: organizations::123456789012:organization/o-exampleorgid
  • An ARN of an organizational unit (OU) in Organizations, for example: organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
  • An ARN of an IAM role, for example: iam::123456789012:role/rolename
  • An ARN of an IAM user, for example: iam::123456789012user/username

Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.

createResourceShare_resourceArns :: Lens' CreateResourceShare (Maybe [Text]) Source #

Specifies a list of one or more ARNs of the resources to associate with the resource share.

createResourceShare_tags :: Lens' CreateResourceShare (Maybe [Tag]) Source #

Specifies one or more tags to attach to the resource share itself. It doesn't attach the tags to the resources associated with the resource share.

createResourceShare_name :: Lens' CreateResourceShare Text Source #

Specifies the name of the resource share.

createResourceShareResponse_clientToken :: Lens' CreateResourceShareResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

createResourceShareResponse_resourceShare :: Lens' CreateResourceShareResponse (Maybe ResourceShare) Source #

An object with information about the new resource share.

DeleteResourceShare

deleteResourceShare_clientToken :: Lens' DeleteResourceShare (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

deleteResourceShareResponse_clientToken :: Lens' DeleteResourceShareResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

deleteResourceShareResponse_returnValue :: Lens' DeleteResourceShareResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

DisassociateResourceShare

disassociateResourceShare_clientToken :: Lens' DisassociateResourceShare (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

disassociateResourceShare_principals :: Lens' DisassociateResourceShare (Maybe [Text]) Source #

Specifies a list of one or more principals that no longer are to have access to the resources in this resource share.

You can include the following values:

  • An Amazon Web Services account ID, for example: 123456789012
  • An Amazon Resoure Name (ARN) of an organization in Organizations, for example: organizations::123456789012:organization/o-exampleorgid
  • An ARN of an organizational unit (OU) in Organizations, for example: organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
  • An ARN of an IAM role, for example: iam::123456789012:role/rolename
  • An ARN of an IAM user, for example: iam::123456789012user/username

Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.

disassociateResourceShare_resourceArns :: Lens' DisassociateResourceShare (Maybe [Text]) Source #

Specifies a list of Amazon Resource Names (ARNs) for one or more resources that you want to remove from the resource share. After the operation runs, these resources are no longer shared with principals outside of the Amazon Web Services account that created the resources.

disassociateResourceShare_resourceShareArn :: Lens' DisassociateResourceShare Text Source #

Specifies Amazon Resoure Name (ARN) of the resource share that you want to remove resources from.

disassociateResourceShareResponse_clientToken :: Lens' DisassociateResourceShareResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

disassociateResourceShareResponse_resourceShareAssociations :: Lens' DisassociateResourceShareResponse (Maybe [ResourceShareAssociation]) Source #

An array of objects that contain information about the updated associations for this resource share.

DisassociateResourceSharePermission

disassociateResourceSharePermission_clientToken :: Lens' DisassociateResourceSharePermission (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

disassociateResourceSharePermission_permissionArn :: Lens' DisassociateResourceSharePermission Text Source #

The Amazon Resoure Name (ARN) of the permission to disassociate from the resource share. Changes to permissions take effect immediately.

disassociateResourceSharePermissionResponse_clientToken :: Lens' DisassociateResourceSharePermissionResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

disassociateResourceSharePermissionResponse_returnValue :: Lens' DisassociateResourceSharePermissionResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

EnableSharingWithAwsOrganization

enableSharingWithAwsOrganizationResponse_returnValue :: Lens' EnableSharingWithAwsOrganizationResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

GetPermission

getPermission_permissionVersion :: Lens' GetPermission (Maybe Int) Source #

Specifies identifier for the version of the RAM permission to retrieve. If you don't specify this parameter, the operation retrieves the default version.

getPermission_permissionArn :: Lens' GetPermission Text Source #

Specifies the Amazon Resoure Name (ARN) of the permission whose contents you want to retrieve. To find the ARN for a permission, use either the ListPermissions operation or go to the Permissions library page in the RAM console and then choose the name of the permission. The ARN is displayed on the detail page.

getPermissionResponse_permission :: Lens' GetPermissionResponse (Maybe ResourceSharePermissionDetail) Source #

An object that contains information about the permission.

GetResourcePolicies

getResourcePolicies_maxResults :: Lens' GetResourcePolicies (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

getResourcePolicies_nextToken :: Lens' GetResourcePolicies (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

getResourcePolicies_resourceArns :: Lens' GetResourcePolicies [Text] Source #

Specifies the Amazon Resource Names (ARNs) of the resources whose policies you want to retrieve.

getResourcePoliciesResponse_nextToken :: Lens' GetResourcePoliciesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

getResourcePoliciesResponse_policies :: Lens' GetResourcePoliciesResponse (Maybe [Text]) Source #

An array of resource policy documents in JSON format.

GetResourceShareAssociations

getResourceShareAssociations_associationStatus :: Lens' GetResourceShareAssociations (Maybe ResourceShareAssociationStatus) Source #

Specifies that you want to retrieve only associations with this status.

getResourceShareAssociations_maxResults :: Lens' GetResourceShareAssociations (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

getResourceShareAssociations_nextToken :: Lens' GetResourceShareAssociations (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

getResourceShareAssociations_principal :: Lens' GetResourceShareAssociations (Maybe Text) Source #

Specifies the ID of the principal whose resource shares you want to retrieve. This can be an Amazon Web Services account ID, an organization ID, an organizational unit ID, or the Amazon Resoure Name (ARN) of an individual IAM user or role.

You cannot specify this parameter if the association type is RESOURCE.

getResourceShareAssociations_resourceArn :: Lens' GetResourceShareAssociations (Maybe Text) Source #

Specifies the Amazon Resoure Name (ARN) of the resource whose resource shares you want to retrieve.

You cannot specify this parameter if the association type is PRINCIPAL.

getResourceShareAssociations_resourceShareArns :: Lens' GetResourceShareAssociations (Maybe [Text]) Source #

Specifies a list of Amazon Resource Names (ARNs) of the resource share whose associations you want to retrieve.

getResourceShareAssociations_associationType :: Lens' GetResourceShareAssociations ResourceShareAssociationType Source #

Specifies whether you want to retrieve the associations that involve a specified resource or principal.

  • PRINCIPAL – list the principals that are associated with the specified resource share.
  • RESOURCE – list the resources that are associated with the specified resource share.

getResourceShareAssociationsResponse_nextToken :: Lens' GetResourceShareAssociationsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

GetResourceShareInvitations

getResourceShareInvitations_maxResults :: Lens' GetResourceShareInvitations (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

getResourceShareInvitations_nextToken :: Lens' GetResourceShareInvitations (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

getResourceShareInvitations_resourceShareArns :: Lens' GetResourceShareInvitations (Maybe [Text]) Source #

Specifies that you want details about invitations only for the resource shares described by this list of Amazon Resource Names (ARNs)

getResourceShareInvitations_resourceShareInvitationArns :: Lens' GetResourceShareInvitations (Maybe [Text]) Source #

Specifies the Amazon Resource Names (ARNs) of the resource share invitations you want information about.

getResourceShareInvitationsResponse_nextToken :: Lens' GetResourceShareInvitationsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

GetResourceShares

getResourceShares_maxResults :: Lens' GetResourceShares (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

getResourceShares_name :: Lens' GetResourceShares (Maybe Text) Source #

Specifies the name of an individual resource share that you want to retrieve details about.

getResourceShares_nextToken :: Lens' GetResourceShares (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

getResourceShares_permissionArn :: Lens' GetResourceShares (Maybe Text) Source #

Specifies that you want to retrieve details of only those resource shares that use the RAM permission with this Amazon Resoure Name (ARN).

getResourceShares_resourceShareArns :: Lens' GetResourceShares (Maybe [Text]) Source #

Specifies the Amazon Resource Names (ARNs) of individual resource shares that you want information about.

getResourceShares_resourceShareStatus :: Lens' GetResourceShares (Maybe ResourceShareStatus) Source #

Specifies that you want to retrieve details of only those resource shares that have this status.

getResourceShares_tagFilters :: Lens' GetResourceShares (Maybe [TagFilter]) Source #

Specifies that you want to retrieve details of only those resource shares that match the specified tag keys and values.

getResourceShares_resourceOwner :: Lens' GetResourceShares ResourceOwner Source #

Specifies that you want to retrieve details of only those resource shares that match the following:

  • SELF – resource shares that your account shares with other accounts
  • OTHER-ACCOUNTS – resource shares that other accounts share with your account

getResourceSharesResponse_nextToken :: Lens' GetResourceSharesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

getResourceSharesResponse_resourceShares :: Lens' GetResourceSharesResponse (Maybe [ResourceShare]) Source #

An array of objects that contain the information about the resource shares.

ListPendingInvitationResources

listPendingInvitationResources_maxResults :: Lens' ListPendingInvitationResources (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listPendingInvitationResources_nextToken :: Lens' ListPendingInvitationResources (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listPendingInvitationResources_resourceRegionScope :: Lens' ListPendingInvitationResources (Maybe ResourceRegionScopeFilter) Source #

Specifies that you want the results to include only resources that have the specified scope.

  • ALL – the results include both global and regional resources or resource types.
  • GLOBAL – the results include only global resources or resource types.
  • REGIONAL – the results include only regional resources or resource types.

The default value is ALL.

listPendingInvitationResources_resourceShareInvitationArn :: Lens' ListPendingInvitationResources Text Source #

Specifies the Amazon Resoure Name (ARN) of the invitation. You can use GetResourceShareInvitations to find the ARN of the invitation.

listPendingInvitationResourcesResponse_nextToken :: Lens' ListPendingInvitationResourcesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listPendingInvitationResourcesResponse_resources :: Lens' ListPendingInvitationResourcesResponse (Maybe [Resource]) Source #

An array of objects that contain the information about the resources included the specified resource share.

ListPermissionVersions

listPermissionVersions_maxResults :: Lens' ListPermissionVersions (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listPermissionVersions_nextToken :: Lens' ListPermissionVersions (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listPermissionVersions_permissionArn :: Lens' ListPermissionVersions Text Source #

Specifies the Amazon Resoure Name (ARN) of the RAM permission whose versions you want to list. You can use the permissionVersion parameter on the AssociateResourceSharePermission operation to specify a non-default version to attach.

listPermissionVersionsResponse_nextToken :: Lens' ListPermissionVersionsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listPermissionVersionsResponse_permissions :: Lens' ListPermissionVersionsResponse (Maybe [ResourceSharePermissionSummary]) Source #

An array of objects that contain details for each of the available versions.

ListPermissions

listPermissions_maxResults :: Lens' ListPermissions (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listPermissions_nextToken :: Lens' ListPermissions (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listPermissions_resourceType :: Lens' ListPermissions (Maybe Text) Source #

Specifies that you want to list permissions for only the specified resource type. For example, to list only permissions that apply to EC2 subnets, specify ec2:Subnet. You can use the ListResourceTypes operation to get the specific string required.

listPermissionsResponse_nextToken :: Lens' ListPermissionsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listPermissionsResponse_permissions :: Lens' ListPermissionsResponse (Maybe [ResourceSharePermissionSummary]) Source #

An array of objects with information about the permissions.

ListPrincipals

listPrincipals_maxResults :: Lens' ListPrincipals (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listPrincipals_nextToken :: Lens' ListPrincipals (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listPrincipals_principals :: Lens' ListPrincipals (Maybe [Text]) Source #

Specifies that you want to list information for only the listed principals.

You can include the following values:

  • An Amazon Web Services account ID, for example: 123456789012
  • An Amazon Resoure Name (ARN) of an organization in Organizations, for example: organizations::123456789012:organization/o-exampleorgid
  • An ARN of an organizational unit (OU) in Organizations, for example: organizations::123456789012:ou/o-exampleorgid/ou-examplerootid-exampleouid123
  • An ARN of an IAM role, for example: iam::123456789012:role/rolename
  • An ARN of an IAM user, for example: iam::123456789012user/username

Not all resource types can be shared with IAM roles and users. For more information, see Sharing with IAM roles and users in the Resource Access Manager User Guide.

listPrincipals_resourceArn :: Lens' ListPrincipals (Maybe Text) Source #

Specifies that you want to list principal information for the resource share with the specified Amazon Resoure Name (ARN).

listPrincipals_resourceShareArns :: Lens' ListPrincipals (Maybe [Text]) Source #

Specifies that you want to list information for only principals associated with the resource shares specified by a list the Amazon Resource Names (ARNs).

listPrincipals_resourceType :: Lens' ListPrincipals (Maybe Text) Source #

Specifies that you want to list information for only principals associated with resource shares that include the specified resource type.

For a list of valid values, query the ListResourceTypes operation.

listPrincipals_resourceOwner :: Lens' ListPrincipals ResourceOwner Source #

Specifies that you want to list information for only resource shares that match the following:

  • SELF – principals that your account is sharing resources with
  • OTHER-ACCOUNTS – principals that are sharing resources with your account

listPrincipalsResponse_nextToken :: Lens' ListPrincipalsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listPrincipalsResponse_principals :: Lens' ListPrincipalsResponse (Maybe [Principal]) Source #

An array of objects that contain the details about the principals.

ListResourceSharePermissions

listResourceSharePermissions_maxResults :: Lens' ListResourceSharePermissions (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listResourceSharePermissions_nextToken :: Lens' ListResourceSharePermissions (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listResourceSharePermissions_resourceShareArn :: Lens' ListResourceSharePermissions Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share for which you want to retrieve the associated permissions.

listResourceSharePermissionsResponse_nextToken :: Lens' ListResourceSharePermissionsResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listResourceSharePermissionsResponse_permissions :: Lens' ListResourceSharePermissionsResponse (Maybe [ResourceSharePermissionSummary]) Source #

An array of objects that describe the permissions associated with the resource share.

ListResourceTypes

listResourceTypes_maxResults :: Lens' ListResourceTypes (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listResourceTypes_nextToken :: Lens' ListResourceTypes (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listResourceTypes_resourceRegionScope :: Lens' ListResourceTypes (Maybe ResourceRegionScopeFilter) Source #

Specifies that you want the results to include only resources that have the specified scope.

  • ALL – the results include both global and regional resources or resource types.
  • GLOBAL – the results include only global resources or resource types.
  • REGIONAL – the results include only regional resources or resource types.

The default value is ALL.

listResourceTypesResponse_nextToken :: Lens' ListResourceTypesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listResourceTypesResponse_resourceTypes :: Lens' ListResourceTypesResponse (Maybe [ServiceNameAndResourceType]) Source #

An array of objects that contain information about the resource types that can be shared using RAM.

ListResources

listResources_maxResults :: Lens' ListResources (Maybe Natural) Source #

Specifies the total number of results that you want included on each page of the response. If you do not include this parameter, it defaults to a value that is specific to the operation. If additional items exist beyond the number you specify, the NextToken response element is returned with a value (not null). Include the specified value as the NextToken request parameter in the next call to the operation to get the next part of the results. Note that the service might return fewer results than the maximum even when there are more results available. You should check NextToken after every operation to ensure that you receive all of the results.

listResources_nextToken :: Lens' ListResources (Maybe Text) Source #

Specifies that you want to receive the next page of results. Valid only if you received a NextToken response in the previous request. If you did, it indicates that more output is available. Set this parameter to the value provided by the previous call's NextToken response to request the next page of results.

listResources_principal :: Lens' ListResources (Maybe Text) Source #

Specifies that you want to list only the resource shares that are associated with the specified principal.

listResources_resourceArns :: Lens' ListResources (Maybe [Text]) Source #

Specifies that you want to list only the resource shares that include resources with the specified Amazon Resource Names (ARNs).

listResources_resourceRegionScope :: Lens' ListResources (Maybe ResourceRegionScopeFilter) Source #

Specifies that you want the results to include only resources that have the specified scope.

  • ALL – the results include both global and regional resources or resource types.
  • GLOBAL – the results include only global resources or resource types.
  • REGIONAL – the results include only regional resources or resource types.

The default value is ALL.

listResources_resourceShareArns :: Lens' ListResources (Maybe [Text]) Source #

Specifies that you want to list only resources in the resource shares identified by the specified Amazon Resource Names (ARNs).

listResources_resourceType :: Lens' ListResources (Maybe Text) Source #

Specifies that you want to list only the resource shares that include resources of the specified resource type.

For valid values, query the ListResourceTypes operation.

listResources_resourceOwner :: Lens' ListResources ResourceOwner Source #

Specifies that you want to list only the resource shares that match the following:

  • SELF – resources that your account shares with other accounts
  • OTHER-ACCOUNTS – resources that other accounts share with your account

listResourcesResponse_nextToken :: Lens' ListResourcesResponse (Maybe Text) Source #

If present, this value indicates that more output is available than is included in the current response. Use this value in the NextToken request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until the NextToken response element comes back as null. This indicates that this is the last page of results.

listResourcesResponse_resources :: Lens' ListResourcesResponse (Maybe [Resource]) Source #

An array of objects that contain information about the resources.

PromoteResourceShareCreatedFromPolicy

promoteResourceShareCreatedFromPolicyResponse_returnValue :: Lens' PromoteResourceShareCreatedFromPolicyResponse (Maybe Bool) Source #

A return value of true indicates that the request succeeded. A value of false indicates that the request failed.

RejectResourceShareInvitation

rejectResourceShareInvitation_clientToken :: Lens' RejectResourceShareInvitation (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

rejectResourceShareInvitationResponse_clientToken :: Lens' RejectResourceShareInvitationResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

TagResource

tagResource_resourceShareArn :: Lens' TagResource Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share that you want to add tags to.

tagResource_tags :: Lens' TagResource [Tag] Source #

A list of one or more tag key and value pairs. The tag key must be present and not be an empty string. The tag value must be present but can be an empty string.

UntagResource

untagResource_resourceShareArn :: Lens' UntagResource Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share that you want to remove tags from. The tags are removed from the resource share, not the resources in the resource share.

untagResource_tagKeys :: Lens' UntagResource [Text] Source #

Specifies a list of one or more tag keys that you want to remove.

UpdateResourceShare

updateResourceShare_allowExternalPrincipals :: Lens' UpdateResourceShare (Maybe Bool) Source #

Specifies whether principals outside your organization in Organizations can be associated with a resource share.

updateResourceShare_clientToken :: Lens' UpdateResourceShare (Maybe Text) Source #

Specifies a unique, case-sensitive identifier that you provide to ensure the idempotency of the request. This lets you safely retry the request without accidentally performing the same operation a second time. Passing the same value to a later call to an operation requires that you also pass the same value for all other parameters. We recommend that you use a UUID type of value..

If you don't provide this value, then Amazon Web Services generates a random one for you.

updateResourceShare_name :: Lens' UpdateResourceShare (Maybe Text) Source #

If specified, the new name that you want to attach to the resource share.

updateResourceShare_resourceShareArn :: Lens' UpdateResourceShare Text Source #

Specifies the Amazon Resoure Name (ARN) of the resource share that you want to modify.

updateResourceShareResponse_clientToken :: Lens' UpdateResourceShareResponse (Maybe Text) Source #

The idempotency identifier associated with this request. If you want to repeat the same operation in an idempotent manner then you must include this value in the clientToken request parameter of that later call. All other parameters must also have the same values that you used in the first call.

Types

Principal

principal_creationTime :: Lens' Principal (Maybe UTCTime) Source #

The date and time when the principal was associated with the resource share.

principal_external :: Lens' Principal (Maybe Bool) Source #

Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.

principal_id :: Lens' Principal (Maybe Text) Source #

The ID of the principal.

principal_lastUpdatedTime :: Lens' Principal (Maybe UTCTime) Source #

The date and time when the association was last updated.

principal_resourceShareArn :: Lens' Principal (Maybe Text) Source #

The Amazon Resoure Name (ARN) of a resource share the principal is associated with.

Resource

resource_creationTime :: Lens' Resource (Maybe UTCTime) Source #

The date and time when the resource was associated with the resource share.

resource_lastUpdatedTime :: Lens' Resource (Maybe UTCTime) Source #

The date an time when the association was last updated.

resource_resourceGroupArn :: Lens' Resource (Maybe Text) Source #

The Amazon Resoure Name (ARN) of the resource group. This value is available only if the resource is part of a resource group.

resource_resourceRegionScope :: Lens' Resource (Maybe ResourceRegionScope) Source #

Specifies the scope of visibility of this resource:

  • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
  • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

resource_resourceShareArn :: Lens' Resource (Maybe Text) Source #

The Amazon Resoure Name (ARN) of the resource share this resource is associated with.

resource_status :: Lens' Resource (Maybe ResourceStatus) Source #

The current status of the resource.

resource_statusMessage :: Lens' Resource (Maybe Text) Source #

A message about the status of the resource.

resource_type :: Lens' Resource (Maybe Text) Source #

The resource type. This takes the form of: service-code:resource-code

ResourceShare

resourceShare_allowExternalPrincipals :: Lens' ResourceShare (Maybe Bool) Source #

Indicates whether principals outside your organization in Organizations can be associated with a resource share.

resourceShare_creationTime :: Lens' ResourceShare (Maybe UTCTime) Source #

The date and time when the resource share was created.

resourceShare_featureSet :: Lens' ResourceShare (Maybe ResourceShareFeatureSet) Source #

Indicates how the resource share was created. Possible values include:

  • CREATED_FROM_POLICY - Indicates that the resource share was created from an Identity and Access Management (IAM) resource-based permission policy attached to the resource. 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 - The resource share is in the process of being promoted. For more information, see PromoteResourceShareCreatedFromPolicy.
  • STANDARD - Indicates that the resource share was created in RAM using the console or APIs. 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.

resourceShare_lastUpdatedTime :: Lens' ResourceShare (Maybe UTCTime) Source #

The date and time when the resource share was last updated.

resourceShare_name :: Lens' ResourceShare (Maybe Text) Source #

The name of the resource share.

resourceShare_owningAccountId :: Lens' ResourceShare (Maybe Text) Source #

The ID of the Amazon Web Services account that owns the resource share.

resourceShare_status :: Lens' ResourceShare (Maybe ResourceShareStatus) Source #

The current status of the resource share.

resourceShare_statusMessage :: Lens' ResourceShare (Maybe Text) Source #

A message about the status of the resource share.

resourceShare_tags :: Lens' ResourceShare (Maybe [Tag]) Source #

The tag key and value pairs attached to the resource share.

ResourceShareAssociation

resourceShareAssociation_associatedEntity :: Lens' ResourceShareAssociation (Maybe Text) Source #

The associated entity. This can be either of the following:

  • For a resource association, this is the Amazon Resoure Name (ARN) of the resource.
  • For principal associations, this is one of the following:

    • The ID of an Amazon Web Services account
    • The Amazon Resoure Name (ARN) of an organization in Organizations
    • The ARN of an organizational unit (OU) in Organizations
    • The ARN of an IAM role
    • The ARN of an IAM user

resourceShareAssociation_creationTime :: Lens' ResourceShareAssociation (Maybe UTCTime) Source #

The date and time when the association was created.

resourceShareAssociation_external :: Lens' ResourceShareAssociation (Maybe Bool) Source #

Indicates whether the principal belongs to the same organization in Organizations as the Amazon Web Services account that owns the resource share.

resourceShareAssociation_lastUpdatedTime :: Lens' ResourceShareAssociation (Maybe UTCTime) Source #

The date and time when the association was last updated.

resourceShareAssociation_statusMessage :: Lens' ResourceShareAssociation (Maybe Text) Source #

A message about the status of the association.

ResourceShareInvitation

resourceShareInvitation_receiverAccountId :: Lens' ResourceShareInvitation (Maybe Text) Source #

The ID of the Amazon Web Services account that received the invitation.

resourceShareInvitation_resourceShareAssociations :: Lens' ResourceShareInvitation (Maybe [ResourceShareAssociation]) Source #

To view the resources associated with a pending resource share invitation, use ListPendingInvitationResources.

resourceShareInvitation_senderAccountId :: Lens' ResourceShareInvitation (Maybe Text) Source #

The ID of the Amazon Web Services account that sent the invitation.

ResourceSharePermissionDetail

resourceSharePermissionDetail_defaultVersion :: Lens' ResourceSharePermissionDetail (Maybe Bool) Source #

Specifies whether the version of the permission represented in this structure is the default version for this permission.

resourceSharePermissionDetail_isResourceTypeDefault :: Lens' ResourceSharePermissionDetail (Maybe Bool) Source #

Specifies whether the version of the permission represented in this structure is the default version for all resources of this resource type.

resourceSharePermissionDetail_lastUpdatedTime :: Lens' ResourceSharePermissionDetail (Maybe UTCTime) Source #

The date and time when the permission was last updated.

resourceSharePermissionDetail_permission :: Lens' ResourceSharePermissionDetail (Maybe Text) Source #

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.

resourceSharePermissionDetail_resourceType :: Lens' ResourceSharePermissionDetail (Maybe Text) Source #

The resource type to which this permission applies.

resourceSharePermissionDetail_version :: Lens' ResourceSharePermissionDetail (Maybe Text) Source #

The version of the permission represented in this structure.

ResourceSharePermissionSummary

resourceSharePermissionSummary_defaultVersion :: Lens' ResourceSharePermissionSummary (Maybe Bool) Source #

Specifies whether the version of the permission represented in this structure is the default version for this permission.

resourceSharePermissionSummary_isResourceTypeDefault :: Lens' ResourceSharePermissionSummary (Maybe Bool) Source #

Specifies whether the version of the permission represented in this structure is the default version for all resources of this resource type.

resourceSharePermissionSummary_resourceType :: Lens' ResourceSharePermissionSummary (Maybe Text) Source #

The type of resource to which this permission applies.

resourceSharePermissionSummary_version :: Lens' ResourceSharePermissionSummary (Maybe Text) Source #

The version of the permission represented in this structure.

ServiceNameAndResourceType

serviceNameAndResourceType_resourceRegionScope :: Lens' ServiceNameAndResourceType (Maybe ResourceRegionScope) Source #

Specifies the scope of visibility of resources of this type:

  • REGIONAL – The resource can be accessed only by using requests that target the Amazon Web Services Region in which the resource exists.
  • GLOBAL – The resource can be accessed from any Amazon Web Services Region.

serviceNameAndResourceType_serviceName :: Lens' ServiceNameAndResourceType (Maybe Text) Source #

The name of the Amazon Web Services service to which resources of this type belong.

Tag

tag_key :: Lens' Tag (Maybe Text) Source #

The key, or name, attached to the tag. Every tag must have a key. Key names are case sensitive.

tag_value :: Lens' Tag (Maybe Text) Source #

The string value attached to the tag. The value can be an empty string. Key values are case sensitive.

TagFilter

tagFilter_tagKey :: Lens' TagFilter (Maybe Text) Source #

The tag key. This must have a valid string value and can't be empty.

tagFilter_tagValues :: Lens' TagFilter (Maybe [Text]) Source #

A list of zero or more tag values. If no values are provided, then the filter matches any tag with the specified key, regardless of its value.