1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. vpclattice
  5. AuthPolicy

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.vpclattice.AuthPolicy

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Creates or updates the auth policy.

Create AuthPolicy Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new AuthPolicy(name: string, args: AuthPolicyArgs, opts?: CustomResourceOptions);
@overload
def AuthPolicy(resource_name: str,
               args: AuthPolicyArgs,
               opts: Optional[ResourceOptions] = None)

@overload
def AuthPolicy(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               policy: Optional[Any] = None,
               resource_identifier: Optional[str] = None)
func NewAuthPolicy(ctx *Context, name string, args AuthPolicyArgs, opts ...ResourceOption) (*AuthPolicy, error)
public AuthPolicy(string name, AuthPolicyArgs args, CustomResourceOptions? opts = null)
public AuthPolicy(String name, AuthPolicyArgs args)
public AuthPolicy(String name, AuthPolicyArgs args, CustomResourceOptions options)
type: aws-native:vpclattice:AuthPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. AuthPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. AuthPolicyArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. AuthPolicyArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. AuthPolicyArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. AuthPolicyArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

AuthPolicy Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The AuthPolicy resource accepts the following input properties:

Policy This property is required. object

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

ResourceIdentifier This property is required. string
The ID or ARN of the service network or service for which the policy is created.
Policy This property is required. interface{}

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

ResourceIdentifier This property is required. string
The ID or ARN of the service network or service for which the policy is created.
policy This property is required. Object

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

resourceIdentifier This property is required. String
The ID or ARN of the service network or service for which the policy is created.
policy This property is required. any

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

resourceIdentifier This property is required. string
The ID or ARN of the service network or service for which the policy is created.
policy This property is required. Any

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

resource_identifier This property is required. str
The ID or ARN of the service network or service for which the policy is created.
policy This property is required. Any

The auth policy.

Search the CloudFormation User Guide for AWS::VpcLattice::AuthPolicy for more information about the expected schema for this property.

resourceIdentifier This property is required. String
The ID or ARN of the service network or service for which the policy is created.

Outputs

All input properties are implicitly available as output properties. Additionally, the AuthPolicy resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
State Pulumi.AwsNative.VpcLattice.AuthPolicyState
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.
Id string
The provider-assigned unique ID for this managed resource.
State AuthPolicyStateEnum
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.
id String
The provider-assigned unique ID for this managed resource.
state AuthPolicyState
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.
id string
The provider-assigned unique ID for this managed resource.
state AuthPolicyState
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.
id str
The provider-assigned unique ID for this managed resource.
state AuthPolicyState
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.
id String
The provider-assigned unique ID for this managed resource.
state "ACTIVE" | "INACTIVE"
The state of the auth policy. The auth policy is only active when the auth type is set to AWS _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.

Supporting Types

AuthPolicyState
, AuthPolicyStateArgs

Active
ACTIVE
Inactive
INACTIVE
AuthPolicyStateActive
ACTIVE
AuthPolicyStateInactive
INACTIVE
Active
ACTIVE
Inactive
INACTIVE
Active
ACTIVE
Inactive
INACTIVE
ACTIVE
ACTIVE
INACTIVE
INACTIVE
"ACTIVE"
ACTIVE
"INACTIVE"
INACTIVE

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi