---
title: "PUT /authpolicy/{resourceIdentifier}"
method: PUT
path: "/authpolicy/{resourceIdentifier}"
---

# PUT /authpolicy/{resourceIdentifier}

`PUT /authpolicy/{resourceIdentifier}`

Creates or updates the auth policy. The policy string in JSON must not contain newlines or blank lines.

For more information, see [Auth policies](https://docs.aws.amazon.com/vpc-lattice/latest/ug/auth-policies.html) in the _Amazon VPC Lattice User Guide_.

## Path parameters

- `resourceIdentifier` string, required

## Request body

- object
  - `policy` string, required — The auth policy. The policy string in JSON must not contain newlines or blank lines.

## Response `200`

Success

- PutAuthPolicyResponse
  - `policy` string — The auth policy. The policy string in JSON must not contain newlines or blank lines.
  - `state` 'Active' | 'Inactive' — The state of the auth policy. The auth policy is only active when the auth type is set to <code>AWS_IAM</code>. 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 <code>NONE</code>, then, any auth policy that you provide remains inactive. For more information, see <a href="https://docs.aws.amazon.com/vpc-lattice/latest/ug/service-networks.html#create-service-network">Create a service network</a> in the <i>Amazon VPC Lattice User Guide</i>.

## Other responses

- `480` — ValidationException
- `481` — AccessDeniedException
- `482` — ResourceNotFoundException
- `483` — ThrottlingException
- `484` — InternalServerException

---

[API](https://skmtc.net/aws/apis/vpc-lattice.md) · [All operations](https://skmtc.net/aws/apis/vpc-lattice/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/vpc-lattice/versions/bbec5439e0f7/schema)
