tencentcloud.CkafkaRoute
Explore with Pulumi AI
Provides a resource to create a ckafka route
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.CkafkaRoute("example", {
accessType: 0,
instanceId: "ckafka-8j4rodrr",
publicNetwork: 3,
subnetId: "subnet-j5vja918",
vipType: 3,
vpcId: "vpc-axrsmmrv",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.CkafkaRoute("example",
access_type=0,
instance_id="ckafka-8j4rodrr",
public_network=3,
subnet_id="subnet-j5vja918",
vip_type=3,
vpc_id="vpc-axrsmmrv")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewCkafkaRoute(ctx, "example", &tencentcloud.CkafkaRouteArgs{
AccessType: pulumi.Float64(0),
InstanceId: pulumi.String("ckafka-8j4rodrr"),
PublicNetwork: pulumi.Float64(3),
SubnetId: pulumi.String("subnet-j5vja918"),
VipType: pulumi.Float64(3),
VpcId: pulumi.String("vpc-axrsmmrv"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.CkafkaRoute("example", new()
{
AccessType = 0,
InstanceId = "ckafka-8j4rodrr",
PublicNetwork = 3,
SubnetId = "subnet-j5vja918",
VipType = 3,
VpcId = "vpc-axrsmmrv",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CkafkaRoute;
import com.pulumi.tencentcloud.CkafkaRouteArgs;
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 CkafkaRoute("example", CkafkaRouteArgs.builder()
.accessType(0)
.instanceId("ckafka-8j4rodrr")
.publicNetwork(3)
.subnetId("subnet-j5vja918")
.vipType(3)
.vpcId("vpc-axrsmmrv")
.build());
}
}
resources:
example:
type: tencentcloud:CkafkaRoute
properties:
accessType: 0
instanceId: ckafka-8j4rodrr
publicNetwork: 3
subnetId: subnet-j5vja918
vipType: 3
vpcId: vpc-axrsmmrv
Create CkafkaRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CkafkaRoute(name: string, args: CkafkaRouteArgs, opts?: CustomResourceOptions);
@overload
def CkafkaRoute(resource_name: str,
args: CkafkaRouteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CkafkaRoute(resource_name: str,
opts: Optional[ResourceOptions] = None,
instance_id: Optional[str] = None,
vip_type: Optional[float] = None,
access_type: Optional[float] = None,
auth_flag: Optional[float] = None,
caller_appid: Optional[float] = None,
ckafka_route_id: Optional[str] = None,
ip: Optional[str] = None,
public_network: Optional[float] = None,
subnet_id: Optional[str] = None,
vpc_id: Optional[str] = None)
func NewCkafkaRoute(ctx *Context, name string, args CkafkaRouteArgs, opts ...ResourceOption) (*CkafkaRoute, error)
public CkafkaRoute(string name, CkafkaRouteArgs args, CustomResourceOptions? opts = null)
public CkafkaRoute(String name, CkafkaRouteArgs args)
public CkafkaRoute(String name, CkafkaRouteArgs args, CustomResourceOptions options)
type: tencentcloud:CkafkaRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args CkafkaRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CkafkaRouteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CkafkaRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CkafkaRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CkafkaRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CkafkaRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The CkafkaRoute resource accepts the following input properties:
- Instance
Id string - Instance id.
- Vip
Type double - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- Access
Type double - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- Auth
Flag double - Auth flag.
- Caller
Appid double - Caller appid.
- Ckafka
Route stringId - ID of the resource.
- Ip string
- Ip.
- Public
Network double - Public network.
- Subnet
Id string - Subnet id.
- Vpc
Id string - Vpc id.
- Instance
Id string - Instance id.
- Vip
Type float64 - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- Access
Type float64 - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- Auth
Flag float64 - Auth flag.
- Caller
Appid float64 - Caller appid.
- Ckafka
Route stringId - ID of the resource.
- Ip string
- Ip.
- Public
Network float64 - Public network.
- Subnet
Id string - Subnet id.
- Vpc
Id string - Vpc id.
- instance
Id String - Instance id.
- vip
Type Double - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- access
Type Double - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag Double - Auth flag.
- caller
Appid Double - Caller appid.
- ckafka
Route StringId - ID of the resource.
- ip String
- Ip.
- public
Network Double - Public network.
- subnet
Id String - Subnet id.
- vpc
Id String - Vpc id.
- instance
Id string - Instance id.
- vip
Type number - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- access
Type number - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag number - Auth flag.
- caller
Appid number - Caller appid.
- ckafka
Route stringId - ID of the resource.
- ip string
- Ip.
- public
Network number - Public network.
- subnet
Id string - Subnet id.
- vpc
Id string - Vpc id.
- instance_
id str - Instance id.
- vip_
type float - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- access_
type float - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth_
flag float - Auth flag.
- caller_
appid float - Caller appid.
- ckafka_
route_ strid - ID of the resource.
- ip str
- Ip.
- public_
network float - Public network.
- subnet_
id str - Subnet id.
- vpc_
id str - Vpc id.
- instance
Id String - Instance id.
- vip
Type Number - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- access
Type Number - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag Number - Auth flag.
- caller
Appid Number - Caller appid.
- ckafka
Route StringId - ID of the resource.
- ip String
- Ip.
- public
Network Number - Public network.
- subnet
Id String - Subnet id.
- vpc
Id String - Vpc id.
Outputs
All input properties are implicitly available as output properties. Additionally, the CkafkaRoute resource produces the following output properties:
- Broker
Vip List<CkafkaLists Route Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- Id string
- The provider-assigned unique ID for this managed resource.
- Vip
Lists List<CkafkaRoute Vip List> - Virtual IP list.
- Broker
Vip []CkafkaLists Route Broker Vip List - Virtual IP list (1 to 1 broker nodes).
- Id string
- The provider-assigned unique ID for this managed resource.
- Vip
Lists []CkafkaRoute Vip List - Virtual IP list.
- broker
Vip List<CkafkaLists Route Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- id String
- The provider-assigned unique ID for this managed resource.
- vip
Lists List<CkafkaRoute Vip List> - Virtual IP list.
- broker
Vip CkafkaLists Route Broker Vip List[] - Virtual IP list (1 to 1 broker nodes).
- id string
- The provider-assigned unique ID for this managed resource.
- vip
Lists CkafkaRoute Vip List[] - Virtual IP list.
- broker_
vip_ Sequence[Ckafkalists Route Broker Vip List] - Virtual IP list (1 to 1 broker nodes).
- id str
- The provider-assigned unique ID for this managed resource.
- vip_
lists Sequence[CkafkaRoute Vip List] - Virtual IP list.
- broker
Vip List<Property Map>Lists - Virtual IP list (1 to 1 broker nodes).
- id String
- The provider-assigned unique ID for this managed resource.
- vip
Lists List<Property Map> - Virtual IP list.
Look up Existing CkafkaRoute Resource
Get an existing CkafkaRoute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CkafkaRouteState, opts?: CustomResourceOptions): CkafkaRoute
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_type: Optional[float] = None,
auth_flag: Optional[float] = None,
broker_vip_lists: Optional[Sequence[CkafkaRouteBrokerVipListArgs]] = None,
caller_appid: Optional[float] = None,
ckafka_route_id: Optional[str] = None,
instance_id: Optional[str] = None,
ip: Optional[str] = None,
public_network: Optional[float] = None,
subnet_id: Optional[str] = None,
vip_lists: Optional[Sequence[CkafkaRouteVipListArgs]] = None,
vip_type: Optional[float] = None,
vpc_id: Optional[str] = None) -> CkafkaRoute
func GetCkafkaRoute(ctx *Context, name string, id IDInput, state *CkafkaRouteState, opts ...ResourceOption) (*CkafkaRoute, error)
public static CkafkaRoute Get(string name, Input<string> id, CkafkaRouteState? state, CustomResourceOptions? opts = null)
public static CkafkaRoute get(String name, Output<String> id, CkafkaRouteState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CkafkaRoute get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Access
Type double - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- Auth
Flag double - Auth flag.
- Broker
Vip List<CkafkaLists Route Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- Caller
Appid double - Caller appid.
- Ckafka
Route stringId - ID of the resource.
- Instance
Id string - Instance id.
- Ip string
- Ip.
- Public
Network double - Public network.
- Subnet
Id string - Subnet id.
- Vip
Lists List<CkafkaRoute Vip List> - Virtual IP list.
- Vip
Type double - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- Vpc
Id string - Vpc id.
- Access
Type float64 - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- Auth
Flag float64 - Auth flag.
- Broker
Vip []CkafkaLists Route Broker Vip List Args - Virtual IP list (1 to 1 broker nodes).
- Caller
Appid float64 - Caller appid.
- Ckafka
Route stringId - ID of the resource.
- Instance
Id string - Instance id.
- Ip string
- Ip.
- Public
Network float64 - Public network.
- Subnet
Id string - Subnet id.
- Vip
Lists []CkafkaRoute Vip List Args - Virtual IP list.
- Vip
Type float64 - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- Vpc
Id string - Vpc id.
- access
Type Double - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag Double - Auth flag.
- broker
Vip List<CkafkaLists Route Broker Vip List> - Virtual IP list (1 to 1 broker nodes).
- caller
Appid Double - Caller appid.
- ckafka
Route StringId - ID of the resource.
- instance
Id String - Instance id.
- ip String
- Ip.
- public
Network Double - Public network.
- subnet
Id String - Subnet id.
- vip
Lists List<CkafkaRoute Vip List> - Virtual IP list.
- vip
Type Double - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- vpc
Id String - Vpc id.
- access
Type number - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag number - Auth flag.
- broker
Vip CkafkaLists Route Broker Vip List[] - Virtual IP list (1 to 1 broker nodes).
- caller
Appid number - Caller appid.
- ckafka
Route stringId - ID of the resource.
- instance
Id string - Instance id.
- ip string
- Ip.
- public
Network number - Public network.
- subnet
Id string - Subnet id.
- vip
Lists CkafkaRoute Vip List[] - Virtual IP list.
- vip
Type number - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- vpc
Id string - Vpc id.
- access_
type float - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth_
flag float - Auth flag.
- broker_
vip_ Sequence[Ckafkalists Route Broker Vip List Args] - Virtual IP list (1 to 1 broker nodes).
- caller_
appid float - Caller appid.
- ckafka_
route_ strid - ID of the resource.
- instance_
id str - Instance id.
- ip str
- Ip.
- public_
network float - Public network.
- subnet_
id str - Subnet id.
- vip_
lists Sequence[CkafkaRoute Vip List Args] - Virtual IP list.
- vip_
type float - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- vpc_
id str - Vpc id.
- access
Type Number - Access type. Valid values:
- 0: PLAINTEXT (in clear text, supported by both the old version and the community version without user information)
- 1: SASL_PLAINTEXT (in clear text, but at the beginning of the data, authentication will be logged in through SASL, which is only supported by the community version)
- 2: SSL (SSL encrypted communication without user information, supported by both older and community versions)
- 3: SASL_SSL (SSL encrypted communication. When the data starts, authentication will be logged in through SASL. Only the community version supports it).
- auth
Flag Number - Auth flag.
- broker
Vip List<Property Map>Lists - Virtual IP list (1 to 1 broker nodes).
- caller
Appid Number - Caller appid.
- ckafka
Route StringId - ID of the resource.
- instance
Id String - Instance id.
- ip String
- Ip.
- public
Network Number - Public network.
- subnet
Id String - Subnet id.
- vip
Lists List<Property Map> - Virtual IP list.
- vip
Type Number - Routing network type (3:vpc routing; 4: standard support routing; 7: professional support routing).
- vpc
Id String - Vpc id.
Supporting Types
CkafkaRouteBrokerVipList, CkafkaRouteBrokerVipListArgs
CkafkaRouteVipList, CkafkaRouteVipListArgs
Import
ckafka route can be imported using the id, e.g.
$ pulumi import tencentcloud:index/ckafkaRoute:CkafkaRoute example ckafka-8j4rodrr#135912
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.