Skip to content

ListPermissionsRequest

Source code in docs_src/capo_ram/types/list_permissions_request.py
class ListPermissionsRequest(TypedDict, closed=True):
    resource_type: NotRequired["capo_ram.types.string.String"]
    """<p>Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.</p> <p>For example, to list only permissions that apply to Amazon EC2 subnets, specify <code>ec2:subnet</code>. You can use the <a>ListResourceTypes</a> operation to get the specific string required.</p>"""
    resource_owner: NotRequired["capo_ram.types.resource_owner.ResourceOwner"]
    """<p>Specifies that you want to list only permissions owned by a specific entity:</p> <ul> <li> <p> <code>SELF</code> – returns only permissions owned by the calling account.</p> </li> <li> <p> <code>OTHER-ACCOUNTS</code> – returns only permissions shared with the calling account by other accounts.</p> </li> </ul>"""
    next_token: NotRequired["capo_ram.types.string.String"]
    """<p>Specifies that you want to receive the next page of results. Valid only if you received a <code>NextToken</code> 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 <code>NextToken</code> response to request the next page of results.</p>"""
    max_results: NotRequired["capo_ram.types.max_results.MaxResults"]
    """<p>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 <code>NextToken</code> response element is returned with a value (not null). Include the specified value as the <code>NextToken</code> 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 <code>NextToken</code> after every operation to ensure that you receive all of the results.</p>"""
    permission_type: NotRequired[
        "capo_ram.types.permission_type_filter.PermissionTypeFilter"
    ]
    """<p>Specifies that you want to list only permissions of this type:</p> <ul> <li> <p> <code>AWS</code> – returns only Amazon Web Services managed permissions.</p> </li> <li> <p> <code>LOCAL</code> – returns only customer managed permissions</p> </li> <li> <p> <code>ALL</code> – returns both Amazon Web Services managed permissions and customer managed permissions.</p> </li> </ul> <p>If you don't specify this parameter, the default is <code>All</code>.</p>"""
    permission_status: NotRequired["capo_ram.types.permission_status.PermissionStatus"]
    """<p>Specifies that you want to filter the results to include only permissions with the specified status. For example, use <code>ATTACHABLE</code> to list only permissions that can be associated with resource shares, or <code>DEPRECATED</code> to list only deprecated permissions.</p>"""

max_results instance-attribute

max_results: NotRequired[MaxResults]

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.

next_token instance-attribute

next_token: NotRequired[String]

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.

permission_status instance-attribute

permission_status: NotRequired[PermissionStatus]

Specifies that you want to filter the results to include only permissions with the specified status. For example, use ATTACHABLE to list only permissions that can be associated with resource shares, or DEPRECATED to list only deprecated permissions.

permission_type instance-attribute

permission_type: NotRequired[PermissionTypeFilter]

Specifies that you want to list only permissions of this type:

  • AWS – returns only Amazon Web Services managed permissions.

  • LOCAL – returns only customer managed permissions

  • ALL – returns both Amazon Web Services managed permissions and customer managed permissions.

If you don't specify this parameter, the default is All.

resource_owner instance-attribute

resource_owner: NotRequired[ResourceOwner]

Specifies that you want to list only permissions owned by a specific entity:

  • SELF – returns only permissions owned by the calling account.

  • OTHER-ACCOUNTS – returns only permissions shared with the calling account by other accounts.

resource_type instance-attribute

resource_type: NotRequired[String]

Specifies that you want to list only those permissions that apply to the specified resource type. This parameter is not case sensitive.

For example, to list only permissions that apply to Amazon EC2 subnets, specify ec2:subnet. You can use the ListResourceTypes operation to get the specific string required.