v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-1473359323.2 KB

Creates a service network. A service network is a logical boundary for a collection of services. You can associate services and VPCs with a service network.

For more information, see Service networks in the Amazon VPC Lattice User Guide.

post/servicenetworks

Request body

clientTokenstring

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

namestring required

The name of the service network. The name must be unique to the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

authType'NONE' | 'AWS_IAM'
<p>The type of IAM policy.</p> <ul> <li> <p> <code>NONE</code>: The resource does not use an IAM policy. This is the default.</p> </li> <li> <p> <code>AWS_IAM</code>: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy is required.</p> </li> </ul>
tagsobject

The tags for the service network.

Response

Success

idstring

The ID of the service network.

namestring

The name of the service network.

arnstring

The Amazon Resource Name (ARN) of the service network.

authType'NONE' | 'AWS_IAM'

The type of IAM policy.