describe_iam_policy_assignment

describe_iam_policy_assignment(**kwargs)

Describes an existing IAM policy assignment, as specified by the assignment name.

See also: AWS API Documentation

Request Syntax

response = client.describe_iam_policy_assignment(
    AwsAccountId='string',
    AssignmentName='string',
    Namespace='string'
)
Parameters
  • AwsAccountId (string) --

    [REQUIRED]

    The ID of the Amazon Web Services account that contains the assignment that you want to describe.

  • AssignmentName (string) --

    [REQUIRED]

    The name of the assignment, also called a rule.

  • Namespace (string) --

    [REQUIRED]

    The namespace that contains the assignment.

Return type

dict

Returns

Response Syntax

{
    'IAMPolicyAssignment': {
        'AwsAccountId': 'string',
        'AssignmentId': 'string',
        'AssignmentName': 'string',
        'PolicyArn': 'string',
        'Identities': {
            'string': [
                'string',
            ]
        },
        'AssignmentStatus': 'ENABLED'|'DRAFT'|'DISABLED'
    },
    'RequestId': 'string',
    'Status': 123
}

Response Structure

  • (dict) --

    • IAMPolicyAssignment (dict) --

      Information describing the IAM policy assignment.

      • AwsAccountId (string) --

        The Amazon Web Services account ID.

      • AssignmentId (string) --

        Assignment ID.

      • AssignmentName (string) --

        Assignment name.

      • PolicyArn (string) --

        The Amazon Resource Name (ARN) for the IAM policy.

      • Identities (dict) --

        Identities.

        • (string) --
          • (list) --
            • (string) --
      • AssignmentStatus (string) --

        Assignment status.

    • RequestId (string) --

      The Amazon Web Services request ID for this operation.

    • Status (integer) --

      The HTTP status of the request.

Exceptions

  • QuickSight.Client.exceptions.AccessDeniedException
  • QuickSight.Client.exceptions.InvalidParameterValueException
  • QuickSight.Client.exceptions.ResourceNotFoundException
  • QuickSight.Client.exceptions.ThrottlingException
  • QuickSight.Client.exceptions.InvalidNextTokenException
  • QuickSight.Client.exceptions.InternalFailureException