Firewall Vpc Firewall Cen
Provides a Cloud Firewall Vpc Firewall Cen resource. For information about Cloud Firewall Vpc Firewall Cen and how to use it, see What is Vpc Firewall Cen.
NOTE: Available since v1.194.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
// These resource primary keys should be replaced with your actual values.
const _default = new alicloud.cloudfirewall.FirewallVpcFirewallCen("default", {
cenId: "cen-xxx",
localVpc: {
networkInstanceId: "vpc-xxx",
},
status: "open",
memberUid: "14151*****827022",
vpcRegion: "cn-hangzhou",
vpcFirewallName: "tf-vpc-firewall-name",
});
Content copied to clipboard
import pulumi
import pulumi_alicloud as alicloud
# These resource primary keys should be replaced with your actual values.
default = alicloud.cloudfirewall.FirewallVpcFirewallCen("default",
cen_id="cen-xxx",
local_vpc={
"network_instance_id": "vpc-xxx",
},
status="open",
member_uid="14151*****827022",
vpc_region="cn-hangzhou",
vpc_firewall_name="tf-vpc-firewall-name")
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
// These resource primary keys should be replaced with your actual values.
var @default = new AliCloud.CloudFirewall.FirewallVpcFirewallCen("default", new()
{
CenId = "cen-xxx",
LocalVpc = new AliCloud.CloudFirewall.Inputs.FirewallVpcFirewallCenLocalVpcArgs
{
NetworkInstanceId = "vpc-xxx",
},
Status = "open",
MemberUid = "14151*****827022",
VpcRegion = "cn-hangzhou",
VpcFirewallName = "tf-vpc-firewall-name",
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/cloudfirewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// These resource primary keys should be replaced with your actual values.
_, err := cloudfirewall.NewFirewallVpcFirewallCen(ctx, "default", &cloudfirewall.FirewallVpcFirewallCenArgs{
CenId: pulumi.String("cen-xxx"),
LocalVpc: &cloudfirewall.FirewallVpcFirewallCenLocalVpcArgs{
NetworkInstanceId: pulumi.String("vpc-xxx"),
},
Status: pulumi.String("open"),
MemberUid: pulumi.String("14151*****827022"),
VpcRegion: pulumi.String("cn-hangzhou"),
VpcFirewallName: pulumi.String("tf-vpc-firewall-name"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewallCen;
import com.pulumi.alicloud.cloudfirewall.FirewallVpcFirewallCenArgs;
import com.pulumi.alicloud.cloudfirewall.inputs.FirewallVpcFirewallCenLocalVpcArgs;
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) {
// These resource primary keys should be replaced with your actual values.
var default_ = new FirewallVpcFirewallCen("default", FirewallVpcFirewallCenArgs.builder()
.cenId("cen-xxx")
.localVpc(FirewallVpcFirewallCenLocalVpcArgs.builder()
.networkInstanceId("vpc-xxx")
.build())
.status("open")
.memberUid("14151*****827022")
.vpcRegion("cn-hangzhou")
.vpcFirewallName("tf-vpc-firewall-name")
.build());
}
}
Content copied to clipboard
resources:
# These resource primary keys should be replaced with your actual values.
default:
type: alicloud:cloudfirewall:FirewallVpcFirewallCen
properties:
cenId: cen-xxx
localVpc:
networkInstanceId: vpc-xxx
status: open
memberUid: 14151*****827022
vpcRegion: cn-hangzhou
vpcFirewallName: tf-vpc-firewall-name
Content copied to clipboard
Import
Cloud Firewall Vpc Firewall Cen can be imported using the id, e.g.
$ pulumi import alicloud:cloudfirewall/firewallVpcFirewallCen:FirewallVpcFirewallCen example <id>
Content copied to clipboard
Properties
Link copied to clipboard
Intercommunication type, value: expressconnect: Express Channel cen: Cloud Enterprise Network
Link copied to clipboard
The details of the VPC. See local_vpc
below.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
VPC firewall ID
Link copied to clipboard
The name of the VPC firewall instance.