v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1473359323.2 KB

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

For more information, see Auth policies in the Amazon VPC Lattice User Guide.

put/authpolicy/{resourceIdentifier}

Path parameters

resourceIdentifierstring required

The ID or ARN of the service network or service for which the policy is created.

Request body

policystring required

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

Response

Success

policystring

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>.