AuthorizationRule

class AuthorizationRule : KotlinCustomResource

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

Properties

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

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

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

The ID of the Client VPN endpoint.

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

A brief description of the authorization rule.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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

Link copied to clipboard
val urn: Output<String>