AuthorizationRuleArgs

data class AuthorizationRuleArgs(val accessGroupId: Output<String>? = null, val authorizeAllGroups: Output<Boolean>? = null, val clientVpnEndpointId: Output<String>? = null, val description: Output<String>? = null, val targetNetworkCidr: Output<String>? = null) : ConvertibleToJava<AuthorizationRuleArgs>

Provides authorization rules for AWS Client VPN endpoints. For more information on usage, please see the AWS Client VPN Administrator's Guide.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.ec2clientvpn.AuthorizationRule;
import com.pulumi.aws.ec2clientvpn.AuthorizationRuleArgs;
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) {
var example = new AuthorizationRule("example", AuthorizationRuleArgs.builder()
.clientVpnEndpointId(aws_ec2_client_vpn_endpoint.example().id())
.targetNetworkCidr(aws_subnet.example().cidr_block())
.authorizeAllGroups(true)
.build());
}
}

Import

AWS Client VPN authorization rules can be imported using the endpoint ID and target network CIDR. If there is a specific group name that is included as well. All values are separated by a ,.

$ pulumi import aws:ec2clientvpn/authorizationRule:AuthorizationRule example cvpn-endpoint-0ac3a1abbccddd666,10.1.0.0/24
$ pulumi import aws:ec2clientvpn/authorizationRule:AuthorizationRule example cvpn-endpoint-0ac3a1abbccddd666,10.1.0.0/24,team-a

Constructors

Link copied to clipboard
constructor(accessGroupId: Output<String>? = null, authorizeAllGroups: Output<Boolean>? = null, clientVpnEndpointId: Output<String>? = null, description: Output<String>? = null, targetNetworkCidr: Output<String>? = null)

Properties

Link copied to clipboard
val accessGroupId: Output<String>? = null

The ID of the group to which the authorization rule grants access. One of access_group_id or authorize_all_groups must be set.

Link copied to clipboard
val authorizeAllGroups: Output<Boolean>? = null

Indicates whether the authorization rule grants access to all clients. One of access_group_id or authorize_all_groups must be set.

Link copied to clipboard
val clientVpnEndpointId: Output<String>? = null

The ID of the Client VPN endpoint.

Link copied to clipboard
val description: Output<String>? = null

A brief description of the authorization rule.

Link copied to clipboard
val targetNetworkCidr: Output<String>? = null

The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.

Functions

Link copied to clipboard
open override fun toJava(): AuthorizationRuleArgs