Authorization Rule Args
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
Properties
The ID of the group to which the authorization rule grants access. One of access_group_id
or authorize_all_groups
must be set.
Indicates whether the authorization rule grants access to all clients. One of access_group_id
or authorize_all_groups
must be set.
The ID of the Client VPN endpoint.
A brief description of the authorization rule.
The IPv4 address range, in CIDR notation, of the network to which the authorization rule applies.