VPCLattice / Client / put_auth_policy

put_auth_policy#

VPCLattice.Client.put_auth_policy(**kwargs)#

Creates or updates the auth policy.

See also: AWS API Documentation

Request Syntax

response = client.put_auth_policy(
    policy='string',
    resourceIdentifier='string'
)
Parameters:
  • policy (string) –

    [REQUIRED]

    The auth policy.

  • resourceIdentifier (string) –

    [REQUIRED]

    The ID or Amazon Resource Name (ARN) of the service network or service for which the policy is created.

Return type:

dict

Returns:

Response Syntax

{
    'policy': 'string',
    'state': 'Active'|'Inactive'
}

Response Structure

  • (dict) –

    • policy (string) –

      The auth policy.

    • state (string) –

      The state of the auth policy. The auth policy is only active when the auth type is set to Amazon Web Services_IAM. If you provide a policy, then authentication and authorization decisions are made based on this policy and the client’s IAM policy. If the Auth type is NONE, then, any auth policy you provide will remain inactive. For more information, see Create a service network in the Amazon VPC Lattice User Guide.

Exceptions

  • VPCLattice.Client.exceptions.ValidationException

  • VPCLattice.Client.exceptions.AccessDeniedException

  • VPCLattice.Client.exceptions.ThrottlingException

  • VPCLattice.Client.exceptions.ResourceNotFoundException

  • VPCLattice.Client.exceptions.InternalServerException