getAuthPolicy

Data source for managing an AWS VPC Lattice Auth Policy.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.vpclattice.VpclatticeFunctions;
import com.pulumi.aws.vpclattice.inputs.GetAuthPolicyArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var test = VpclatticeFunctions.getAuthPolicy(GetAuthPolicyArgs.builder()
.resourceIdentifier(aws_vpclattice_auth_policy.test().resource_identifier())
.build());
}
}

Return

A collection of values returned by getAuthPolicy.

Parameters

argument

A collection of arguments for invoking getAuthPolicy.


suspend fun getAuthPolicy(policy: String? = null, resourceIdentifier: String, state: String? = null): GetAuthPolicyResult

Return

A collection of values returned by getAuthPolicy.

Parameters

policy

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

resourceIdentifier

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

state

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.

See also


Return

A collection of values returned by getAuthPolicy.

Parameters

argument

Builder for com.pulumi.aws.vpclattice.kotlin.inputs.GetAuthPolicyPlainArgs.

See also