alicloud.eventbridge.Connection
Explore with Pulumi AI
Provides a Event Bridge Connection resource.
For information about Event Bridge Connection and how to use it, see What is Connection.
NOTE: Available since v1.210.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const region = config.get("region") || "cn-chengdu";
const name = config.get("name") || "terraform-example";
const default = alicloud.getZones({});
const defaultNetwork = new alicloud.vpc.Network("default", {
vpcName: name,
cidrBlock: "172.16.0.0/16",
});
const defaultSwitch = new alicloud.vpc.Switch("default", {
vpcId: defaultNetwork.id,
cidrBlock: "172.16.0.0/24",
zoneId: _default.then(_default => _default.zones?.[0]?.id),
vswitchName: name,
});
const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("default", {
name: name,
vpcId: defaultSwitch.vpcId,
});
const defaultConnection = new alicloud.eventbridge.Connection("default", {
connectionName: name,
description: "test-connection-basic-pre",
networkParameters: {
networkType: "PublicNetwork",
vpcId: defaultNetwork.id,
vswitcheId: defaultSwitch.id,
securityGroupId: defaultSecurityGroup.id,
},
authParameters: {
authorizationType: "BASIC_AUTH",
apiKeyAuthParameters: {
apiKeyName: "Token",
apiKeyValue: "Token-value",
},
basicAuthParameters: {
username: "admin",
password: "admin",
},
oauthParameters: {
authorizationEndpoint: "http://127.0.0.1:8080",
httpMethod: "POST",
clientParameters: {
clientId: "ClientId",
clientSecret: "ClientSecret",
},
oauthHttpParameters: {
headerParameters: [{
key: "name",
value: "name",
isValueSecret: "true",
}],
bodyParameters: [{
key: "name",
value: "name",
isValueSecret: "true",
}],
queryStringParameters: [{
key: "name",
value: "name",
isValueSecret: "true",
}],
},
},
},
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
region = config.get("region")
if region is None:
region = "cn-chengdu"
name = config.get("name")
if name is None:
name = "terraform-example"
default = alicloud.get_zones()
default_network = alicloud.vpc.Network("default",
vpc_name=name,
cidr_block="172.16.0.0/16")
default_switch = alicloud.vpc.Switch("default",
vpc_id=default_network.id,
cidr_block="172.16.0.0/24",
zone_id=default.zones[0].id,
vswitch_name=name)
default_security_group = alicloud.ecs.SecurityGroup("default",
name=name,
vpc_id=default_switch.vpc_id)
default_connection = alicloud.eventbridge.Connection("default",
connection_name=name,
description="test-connection-basic-pre",
network_parameters={
"network_type": "PublicNetwork",
"vpc_id": default_network.id,
"vswitche_id": default_switch.id,
"security_group_id": default_security_group.id,
},
auth_parameters={
"authorization_type": "BASIC_AUTH",
"api_key_auth_parameters": {
"api_key_name": "Token",
"api_key_value": "Token-value",
},
"basic_auth_parameters": {
"username": "admin",
"password": "admin",
},
"oauth_parameters": {
"authorization_endpoint": "http://127.0.0.1:8080",
"http_method": "POST",
"client_parameters": {
"client_id": "ClientId",
"client_secret": "ClientSecret",
},
"oauth_http_parameters": {
"header_parameters": [{
"key": "name",
"value": "name",
"is_value_secret": "true",
}],
"body_parameters": [{
"key": "name",
"value": "name",
"is_value_secret": "true",
}],
"query_string_parameters": [{
"key": "name",
"value": "name",
"is_value_secret": "true",
}],
},
},
})
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/ecs"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eventbridge"
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/vpc"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
region := "cn-chengdu"
if param := cfg.Get("region"); param != "" {
region = param
}
name := "terraform-example"
if param := cfg.Get("name"); param != "" {
name = param
}
_default, err := alicloud.GetZones(ctx, &alicloud.GetZonesArgs{}, nil)
if err != nil {
return err
}
defaultNetwork, err := vpc.NewNetwork(ctx, "default", &vpc.NetworkArgs{
VpcName: pulumi.String(name),
CidrBlock: pulumi.String("172.16.0.0/16"),
})
if err != nil {
return err
}
defaultSwitch, err := vpc.NewSwitch(ctx, "default", &vpc.SwitchArgs{
VpcId: defaultNetwork.ID(),
CidrBlock: pulumi.String("172.16.0.0/24"),
ZoneId: pulumi.String(_default.Zones[0].Id),
VswitchName: pulumi.String(name),
})
if err != nil {
return err
}
defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "default", &ecs.SecurityGroupArgs{
Name: pulumi.String(name),
VpcId: defaultSwitch.VpcId,
})
if err != nil {
return err
}
_, err = eventbridge.NewConnection(ctx, "default", &eventbridge.ConnectionArgs{
ConnectionName: pulumi.String(name),
Description: pulumi.String("test-connection-basic-pre"),
NetworkParameters: &eventbridge.ConnectionNetworkParametersArgs{
NetworkType: pulumi.String("PublicNetwork"),
VpcId: defaultNetwork.ID(),
VswitcheId: defaultSwitch.ID(),
SecurityGroupId: defaultSecurityGroup.ID(),
},
AuthParameters: &eventbridge.ConnectionAuthParametersArgs{
AuthorizationType: pulumi.String("BASIC_AUTH"),
ApiKeyAuthParameters: &eventbridge.ConnectionAuthParametersApiKeyAuthParametersArgs{
ApiKeyName: pulumi.String("Token"),
ApiKeyValue: pulumi.String("Token-value"),
},
BasicAuthParameters: &eventbridge.ConnectionAuthParametersBasicAuthParametersArgs{
Username: pulumi.String("admin"),
Password: pulumi.String("admin"),
},
OauthParameters: &eventbridge.ConnectionAuthParametersOauthParametersArgs{
AuthorizationEndpoint: pulumi.String("http://127.0.0.1:8080"),
HttpMethod: pulumi.String("POST"),
ClientParameters: &eventbridge.ConnectionAuthParametersOauthParametersClientParametersArgs{
ClientId: pulumi.String("ClientId"),
ClientSecret: pulumi.String("ClientSecret"),
},
OauthHttpParameters: &eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs{
HeaderParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs{
Key: pulumi.String("name"),
Value: pulumi.String("name"),
IsValueSecret: pulumi.String("true"),
},
},
BodyParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs{
Key: pulumi.String("name"),
Value: pulumi.String("name"),
IsValueSecret: pulumi.String("true"),
},
},
QueryStringParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs{
Key: pulumi.String("name"),
Value: pulumi.String("name"),
IsValueSecret: pulumi.String("true"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var region = config.Get("region") ?? "cn-chengdu";
var name = config.Get("name") ?? "terraform-example";
var @default = AliCloud.GetZones.Invoke();
var defaultNetwork = new AliCloud.Vpc.Network("default", new()
{
VpcName = name,
CidrBlock = "172.16.0.0/16",
});
var defaultSwitch = new AliCloud.Vpc.Switch("default", new()
{
VpcId = defaultNetwork.Id,
CidrBlock = "172.16.0.0/24",
ZoneId = @default.Apply(@default => @default.Apply(getZonesResult => getZonesResult.Zones[0]?.Id)),
VswitchName = name,
});
var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("default", new()
{
Name = name,
VpcId = defaultSwitch.VpcId,
});
var defaultConnection = new AliCloud.EventBridge.Connection("default", new()
{
ConnectionName = name,
Description = "test-connection-basic-pre",
NetworkParameters = new AliCloud.EventBridge.Inputs.ConnectionNetworkParametersArgs
{
NetworkType = "PublicNetwork",
VpcId = defaultNetwork.Id,
VswitcheId = defaultSwitch.Id,
SecurityGroupId = defaultSecurityGroup.Id,
},
AuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersArgs
{
AuthorizationType = "BASIC_AUTH",
ApiKeyAuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersApiKeyAuthParametersArgs
{
ApiKeyName = "Token",
ApiKeyValue = "Token-value",
},
BasicAuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersBasicAuthParametersArgs
{
Username = "admin",
Password = "admin",
},
OauthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersArgs
{
AuthorizationEndpoint = "http://127.0.0.1:8080",
HttpMethod = "POST",
ClientParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersClientParametersArgs
{
ClientId = "ClientId",
ClientSecret = "ClientSecret",
},
OauthHttpParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs
{
HeaderParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs
{
Key = "name",
Value = "name",
IsValueSecret = "true",
},
},
BodyParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs
{
Key = "name",
Value = "name",
IsValueSecret = "true",
},
},
QueryStringParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs
{
Key = "name",
Value = "name",
IsValueSecret = "true",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.AlicloudFunctions;
import com.pulumi.alicloud.inputs.GetZonesArgs;
import com.pulumi.alicloud.vpc.Network;
import com.pulumi.alicloud.vpc.NetworkArgs;
import com.pulumi.alicloud.vpc.Switch;
import com.pulumi.alicloud.vpc.SwitchArgs;
import com.pulumi.alicloud.ecs.SecurityGroup;
import com.pulumi.alicloud.ecs.SecurityGroupArgs;
import com.pulumi.alicloud.eventbridge.Connection;
import com.pulumi.alicloud.eventbridge.ConnectionArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionNetworkParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersApiKeyAuthParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersBasicAuthParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersOauthParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersOauthParametersClientParametersArgs;
import com.pulumi.alicloud.eventbridge.inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs;
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) {
final var config = ctx.config();
final var region = config.get("region").orElse("cn-chengdu");
final var name = config.get("name").orElse("terraform-example");
final var default = AlicloudFunctions.getZones();
var defaultNetwork = new Network("defaultNetwork", NetworkArgs.builder()
.vpcName(name)
.cidrBlock("172.16.0.0/16")
.build());
var defaultSwitch = new Switch("defaultSwitch", SwitchArgs.builder()
.vpcId(defaultNetwork.id())
.cidrBlock("172.16.0.0/24")
.zoneId(default_.zones()[0].id())
.vswitchName(name)
.build());
var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()
.name(name)
.vpcId(defaultSwitch.vpcId())
.build());
var defaultConnection = new Connection("defaultConnection", ConnectionArgs.builder()
.connectionName(name)
.description("test-connection-basic-pre")
.networkParameters(ConnectionNetworkParametersArgs.builder()
.networkType("PublicNetwork")
.vpcId(defaultNetwork.id())
.vswitcheId(defaultSwitch.id())
.securityGroupId(defaultSecurityGroup.id())
.build())
.authParameters(ConnectionAuthParametersArgs.builder()
.authorizationType("BASIC_AUTH")
.apiKeyAuthParameters(ConnectionAuthParametersApiKeyAuthParametersArgs.builder()
.apiKeyName("Token")
.apiKeyValue("Token-value")
.build())
.basicAuthParameters(ConnectionAuthParametersBasicAuthParametersArgs.builder()
.username("admin")
.password("admin")
.build())
.oauthParameters(ConnectionAuthParametersOauthParametersArgs.builder()
.authorizationEndpoint("http://127.0.0.1:8080")
.httpMethod("POST")
.clientParameters(ConnectionAuthParametersOauthParametersClientParametersArgs.builder()
.clientId("ClientId")
.clientSecret("ClientSecret")
.build())
.oauthHttpParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersArgs.builder()
.headerParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs.builder()
.key("name")
.value("name")
.isValueSecret("true")
.build())
.bodyParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs.builder()
.key("name")
.value("name")
.isValueSecret("true")
.build())
.queryStringParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs.builder()
.key("name")
.value("name")
.isValueSecret("true")
.build())
.build())
.build())
.build())
.build());
}
}
configuration:
region:
type: string
default: cn-chengdu
name:
type: string
default: terraform-example
resources:
defaultNetwork:
type: alicloud:vpc:Network
name: default
properties:
vpcName: ${name}
cidrBlock: 172.16.0.0/16
defaultSwitch:
type: alicloud:vpc:Switch
name: default
properties:
vpcId: ${defaultNetwork.id}
cidrBlock: 172.16.0.0/24
zoneId: ${default.zones[0].id}
vswitchName: ${name}
defaultSecurityGroup:
type: alicloud:ecs:SecurityGroup
name: default
properties:
name: ${name}
vpcId: ${defaultSwitch.vpcId}
defaultConnection:
type: alicloud:eventbridge:Connection
name: default
properties:
connectionName: ${name}
description: test-connection-basic-pre
networkParameters:
networkType: PublicNetwork
vpcId: ${defaultNetwork.id}
vswitcheId: ${defaultSwitch.id}
securityGroupId: ${defaultSecurityGroup.id}
authParameters:
authorizationType: BASIC_AUTH
apiKeyAuthParameters:
apiKeyName: Token
apiKeyValue: Token-value
basicAuthParameters:
username: admin
password: admin
oauthParameters:
authorizationEndpoint: http://127.0.0.1:8080
httpMethod: POST
clientParameters:
clientId: ClientId
clientSecret: ClientSecret
oauthHttpParameters:
headerParameters:
- key: name
value: name
isValueSecret: 'true'
bodyParameters:
- key: name
value: name
isValueSecret: 'true'
queryStringParameters:
- key: name
value: name
isValueSecret: 'true'
variables:
default:
fn::invoke:
Function: alicloud:getZones
Arguments: {}
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);
@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
connection_name: Optional[str] = None,
network_parameters: Optional[ConnectionNetworkParametersArgs] = None,
auth_parameters: Optional[ConnectionAuthParametersArgs] = None,
description: Optional[str] = None)
func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)
public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: alicloud:eventbridge:Connection
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 ConnectionArgs
- 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 ConnectionArgs
- 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 ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var alicloudConnectionResource = new AliCloud.EventBridge.Connection("alicloudConnectionResource", new()
{
ConnectionName = "string",
NetworkParameters = new AliCloud.EventBridge.Inputs.ConnectionNetworkParametersArgs
{
NetworkType = "string",
SecurityGroupId = "string",
VpcId = "string",
VswitcheId = "string",
},
AuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersArgs
{
ApiKeyAuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersApiKeyAuthParametersArgs
{
ApiKeyName = "string",
ApiKeyValue = "string",
},
AuthorizationType = "string",
BasicAuthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersBasicAuthParametersArgs
{
Password = "string",
Username = "string",
},
OauthParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersArgs
{
AuthorizationEndpoint = "string",
ClientParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersClientParametersArgs
{
ClientId = "string",
ClientSecret = "string",
},
HttpMethod = "string",
OauthHttpParameters = new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs
{
BodyParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs
{
IsValueSecret = "string",
Key = "string",
Value = "string",
},
},
HeaderParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs
{
IsValueSecret = "string",
Key = "string",
Value = "string",
},
},
QueryStringParameters = new[]
{
new AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs
{
IsValueSecret = "string",
Key = "string",
Value = "string",
},
},
},
},
},
Description = "string",
});
example, err := eventbridge.NewConnection(ctx, "alicloudConnectionResource", &eventbridge.ConnectionArgs{
ConnectionName: pulumi.String("string"),
NetworkParameters: &eventbridge.ConnectionNetworkParametersArgs{
NetworkType: pulumi.String("string"),
SecurityGroupId: pulumi.String("string"),
VpcId: pulumi.String("string"),
VswitcheId: pulumi.String("string"),
},
AuthParameters: &eventbridge.ConnectionAuthParametersArgs{
ApiKeyAuthParameters: &eventbridge.ConnectionAuthParametersApiKeyAuthParametersArgs{
ApiKeyName: pulumi.String("string"),
ApiKeyValue: pulumi.String("string"),
},
AuthorizationType: pulumi.String("string"),
BasicAuthParameters: &eventbridge.ConnectionAuthParametersBasicAuthParametersArgs{
Password: pulumi.String("string"),
Username: pulumi.String("string"),
},
OauthParameters: &eventbridge.ConnectionAuthParametersOauthParametersArgs{
AuthorizationEndpoint: pulumi.String("string"),
ClientParameters: &eventbridge.ConnectionAuthParametersOauthParametersClientParametersArgs{
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
},
HttpMethod: pulumi.String("string"),
OauthHttpParameters: &eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs{
BodyParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs{
IsValueSecret: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
HeaderParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs{
IsValueSecret: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
QueryStringParameters: eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArray{
&eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs{
IsValueSecret: pulumi.String("string"),
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
},
Description: pulumi.String("string"),
})
var alicloudConnectionResource = new Connection("alicloudConnectionResource", ConnectionArgs.builder()
.connectionName("string")
.networkParameters(ConnectionNetworkParametersArgs.builder()
.networkType("string")
.securityGroupId("string")
.vpcId("string")
.vswitcheId("string")
.build())
.authParameters(ConnectionAuthParametersArgs.builder()
.apiKeyAuthParameters(ConnectionAuthParametersApiKeyAuthParametersArgs.builder()
.apiKeyName("string")
.apiKeyValue("string")
.build())
.authorizationType("string")
.basicAuthParameters(ConnectionAuthParametersBasicAuthParametersArgs.builder()
.password("string")
.username("string")
.build())
.oauthParameters(ConnectionAuthParametersOauthParametersArgs.builder()
.authorizationEndpoint("string")
.clientParameters(ConnectionAuthParametersOauthParametersClientParametersArgs.builder()
.clientId("string")
.clientSecret("string")
.build())
.httpMethod("string")
.oauthHttpParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersArgs.builder()
.bodyParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs.builder()
.isValueSecret("string")
.key("string")
.value("string")
.build())
.headerParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs.builder()
.isValueSecret("string")
.key("string")
.value("string")
.build())
.queryStringParameters(ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs.builder()
.isValueSecret("string")
.key("string")
.value("string")
.build())
.build())
.build())
.build())
.description("string")
.build());
alicloud_connection_resource = alicloud.eventbridge.Connection("alicloudConnectionResource",
connection_name="string",
network_parameters={
"network_type": "string",
"security_group_id": "string",
"vpc_id": "string",
"vswitche_id": "string",
},
auth_parameters={
"api_key_auth_parameters": {
"api_key_name": "string",
"api_key_value": "string",
},
"authorization_type": "string",
"basic_auth_parameters": {
"password": "string",
"username": "string",
},
"oauth_parameters": {
"authorization_endpoint": "string",
"client_parameters": {
"client_id": "string",
"client_secret": "string",
},
"http_method": "string",
"oauth_http_parameters": {
"body_parameters": [{
"is_value_secret": "string",
"key": "string",
"value": "string",
}],
"header_parameters": [{
"is_value_secret": "string",
"key": "string",
"value": "string",
}],
"query_string_parameters": [{
"is_value_secret": "string",
"key": "string",
"value": "string",
}],
},
},
},
description="string")
const alicloudConnectionResource = new alicloud.eventbridge.Connection("alicloudConnectionResource", {
connectionName: "string",
networkParameters: {
networkType: "string",
securityGroupId: "string",
vpcId: "string",
vswitcheId: "string",
},
authParameters: {
apiKeyAuthParameters: {
apiKeyName: "string",
apiKeyValue: "string",
},
authorizationType: "string",
basicAuthParameters: {
password: "string",
username: "string",
},
oauthParameters: {
authorizationEndpoint: "string",
clientParameters: {
clientId: "string",
clientSecret: "string",
},
httpMethod: "string",
oauthHttpParameters: {
bodyParameters: [{
isValueSecret: "string",
key: "string",
value: "string",
}],
headerParameters: [{
isValueSecret: "string",
key: "string",
value: "string",
}],
queryStringParameters: [{
isValueSecret: "string",
key: "string",
value: "string",
}],
},
},
},
description: "string",
});
type: alicloud:eventbridge:Connection
properties:
authParameters:
apiKeyAuthParameters:
apiKeyName: string
apiKeyValue: string
authorizationType: string
basicAuthParameters:
password: string
username: string
oauthParameters:
authorizationEndpoint: string
clientParameters:
clientId: string
clientSecret: string
httpMethod: string
oauthHttpParameters:
bodyParameters:
- isValueSecret: string
key: string
value: string
headerParameters:
- isValueSecret: string
key: string
value: string
queryStringParameters:
- isValueSecret: string
key: string
value: string
connectionName: string
description: string
networkParameters:
networkType: string
securityGroupId: string
vpcId: string
vswitcheId: string
Connection 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 Connection resource accepts the following input properties:
- Connection
Name string - The name of the connection.
- Network
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Network Parameters - The parameters that are configured for the network. See
network_parameters
below. - Auth
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - Description string
- The description of the connection.
- Connection
Name string - The name of the connection.
- Network
Parameters ConnectionNetwork Parameters Args - The parameters that are configured for the network. See
network_parameters
below. - Auth
Parameters ConnectionAuth Parameters Args - The parameters that are configured for authentication. See
auth_parameters
below. - Description string
- The description of the connection.
- connection
Name String - The name of the connection.
- network
Parameters ConnectionNetwork Parameters - The parameters that are configured for the network. See
network_parameters
below. - auth
Parameters ConnectionAuth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - description String
- The description of the connection.
- connection
Name string - The name of the connection.
- network
Parameters ConnectionNetwork Parameters - The parameters that are configured for the network. See
network_parameters
below. - auth
Parameters ConnectionAuth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - description string
- The description of the connection.
- connection_
name str - The name of the connection.
- network_
parameters ConnectionNetwork Parameters Args - The parameters that are configured for the network. See
network_parameters
below. - auth_
parameters ConnectionAuth Parameters Args - The parameters that are configured for authentication. See
auth_parameters
below. - description str
- The description of the connection.
- connection
Name String - The name of the connection.
- network
Parameters Property Map - The parameters that are configured for the network. See
network_parameters
below. - auth
Parameters Property Map - The parameters that are configured for authentication. See
auth_parameters
below. - description String
- The description of the connection.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Create
Time string - The creation time of the Connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Create
Time string - The creation time of the Connection.
- Id string
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the Connection.
- id String
- The provider-assigned unique ID for this managed resource.
- create
Time string - The creation time of the Connection.
- id string
- The provider-assigned unique ID for this managed resource.
- create_
time str - The creation time of the Connection.
- id str
- The provider-assigned unique ID for this managed resource.
- create
Time String - The creation time of the Connection.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Connection Resource
Get an existing Connection 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?: ConnectionState, opts?: CustomResourceOptions): Connection
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_parameters: Optional[ConnectionAuthParametersArgs] = None,
connection_name: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
network_parameters: Optional[ConnectionNetworkParametersArgs] = None) -> Connection
func GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)
public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)
public static Connection get(String name, Output<String> id, ConnectionState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Auth
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - Connection
Name string - The name of the connection.
- Create
Time string - The creation time of the Connection.
- Description string
- The description of the connection.
- Network
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Network Parameters - The parameters that are configured for the network. See
network_parameters
below.
- Auth
Parameters ConnectionAuth Parameters Args - The parameters that are configured for authentication. See
auth_parameters
below. - Connection
Name string - The name of the connection.
- Create
Time string - The creation time of the Connection.
- Description string
- The description of the connection.
- Network
Parameters ConnectionNetwork Parameters Args - The parameters that are configured for the network. See
network_parameters
below.
- auth
Parameters ConnectionAuth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - connection
Name String - The name of the connection.
- create
Time String - The creation time of the Connection.
- description String
- The description of the connection.
- network
Parameters ConnectionNetwork Parameters - The parameters that are configured for the network. See
network_parameters
below.
- auth
Parameters ConnectionAuth Parameters - The parameters that are configured for authentication. See
auth_parameters
below. - connection
Name string - The name of the connection.
- create
Time string - The creation time of the Connection.
- description string
- The description of the connection.
- network
Parameters ConnectionNetwork Parameters - The parameters that are configured for the network. See
network_parameters
below.
- auth_
parameters ConnectionAuth Parameters Args - The parameters that are configured for authentication. See
auth_parameters
below. - connection_
name str - The name of the connection.
- create_
time str - The creation time of the Connection.
- description str
- The description of the connection.
- network_
parameters ConnectionNetwork Parameters Args - The parameters that are configured for the network. See
network_parameters
below.
- auth
Parameters Property Map - The parameters that are configured for authentication. See
auth_parameters
below. - connection
Name String - The name of the connection.
- create
Time String - The creation time of the Connection.
- description String
- The description of the connection.
- network
Parameters Property Map - The parameters that are configured for the network. See
network_parameters
below.
Supporting Types
ConnectionAuthParameters, ConnectionAuthParametersArgs
- Api
Key Pulumi.Auth Parameters Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Api Key Auth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - string
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - Basic
Auth Pulumi.Parameters Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Basic Auth Parameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - Oauth
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
- Api
Key ConnectionAuth Parameters Auth Parameters Api Key Auth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - string
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - Basic
Auth ConnectionParameters Auth Parameters Basic Auth Parameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - Oauth
Parameters ConnectionAuth Parameters Oauth Parameters - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
- api
Key ConnectionAuth Parameters Auth Parameters Api Key Auth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - String
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - basic
Auth ConnectionParameters Auth Parameters Basic Auth Parameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - oauth
Parameters ConnectionAuth Parameters Oauth Parameters - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
- api
Key ConnectionAuth Parameters Auth Parameters Api Key Auth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - string
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - basic
Auth ConnectionParameters Auth Parameters Basic Auth Parameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - oauth
Parameters ConnectionAuth Parameters Oauth Parameters - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
- api_
key_ Connectionauth_ parameters Auth Parameters Api Key Auth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - str
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - basic_
auth_ Connectionparameters Auth Parameters Basic Auth Parameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - oauth_
parameters ConnectionAuth Parameters Oauth Parameters - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
- api
Key Property MapAuth Parameters - The parameters that are configured for API key authentication. See
api_key_auth_parameters
below. - String
- The type of the authentication. Valid values:
API_KEY_AUTH
,BASIC_AUTH
,OAUTH_AUTH
. - basic
Auth Property MapParameters - The parameters that are configured for basic authentication. See
basic_auth_parameters
below. - oauth
Parameters Property Map - The parameters that are configured for OAuth authentication. See
oauth_parameters
below.
ConnectionAuthParametersApiKeyAuthParameters, ConnectionAuthParametersApiKeyAuthParametersArgs
- Api
Key stringName - The name of the API key.
- Api
Key stringValue - The value of the API key.
- Api
Key stringName - The name of the API key.
- Api
Key stringValue - The value of the API key.
- api
Key StringName - The name of the API key.
- api
Key StringValue - The value of the API key.
- api
Key stringName - The name of the API key.
- api
Key stringValue - The value of the API key.
- api_
key_ strname - The name of the API key.
- api_
key_ strvalue - The value of the API key.
- api
Key StringName - The name of the API key.
- api
Key StringValue - The value of the API key.
ConnectionAuthParametersBasicAuthParameters, ConnectionAuthParametersBasicAuthParametersArgs
ConnectionAuthParametersOauthParameters, ConnectionAuthParametersOauthParametersArgs
- string
- The IP address of the authorized endpoint.
- Client
Parameters Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters Client Parameters - The parameters that are configured for the client. See
client_parameters
below. - Http
Method string - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - Oauth
Http Pulumi.Parameters Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters Oauth Http Parameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
- string
- The IP address of the authorized endpoint.
- Client
Parameters ConnectionAuth Parameters Oauth Parameters Client Parameters - The parameters that are configured for the client. See
client_parameters
below. - Http
Method string - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - Oauth
Http ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
- String
- The IP address of the authorized endpoint.
- client
Parameters ConnectionAuth Parameters Oauth Parameters Client Parameters - The parameters that are configured for the client. See
client_parameters
below. - http
Method String - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - oauth
Http ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
- string
- The IP address of the authorized endpoint.
- client
Parameters ConnectionAuth Parameters Oauth Parameters Client Parameters - The parameters that are configured for the client. See
client_parameters
below. - http
Method string - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - oauth
Http ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
- str
- The IP address of the authorized endpoint.
- client_
parameters ConnectionAuth Parameters Oauth Parameters Client Parameters - The parameters that are configured for the client. See
client_parameters
below. - http_
method str - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - oauth_
http_ Connectionparameters Auth Parameters Oauth Parameters Oauth Http Parameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
- String
- The IP address of the authorized endpoint.
- client
Parameters Property Map - The parameters that are configured for the client. See
client_parameters
below. - http
Method String - The HTTP request method. Valid values:
GET
,POST
,HEAD
,DELETE
,PUT
,PATCH
. - oauth
Http Property MapParameters - The request parameters that are configured for OAuth authentication. See
oauth_http_parameters
below.
ConnectionAuthParametersOauthParametersClientParameters, ConnectionAuthParametersOauthParametersClientParametersArgs
- Client
Id string - The ID of the client.
- Client
Secret string - The AccessKey secret of the client.
- Client
Id string - The ID of the client.
- Client
Secret string - The AccessKey secret of the client.
- client
Id String - The ID of the client.
- client
Secret String - The AccessKey secret of the client.
- client
Id string - The ID of the client.
- client
Secret string - The AccessKey secret of the client.
- client_
id str - The ID of the client.
- client_
secret str - The AccessKey secret of the client.
- client
Id String - The ID of the client.
- client
Secret String - The AccessKey secret of the client.
ConnectionAuthParametersOauthParametersOauthHttpParameters, ConnectionAuthParametersOauthParametersOauthHttpParametersArgs
- Body
Parameters List<Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters Oauth Http Parameters Body Parameter> - The parameters that are configured for the request body. See
body_parameters
below. - Header
Parameters List<Pulumi.Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters Oauth Http Parameters Header Parameter> - The parameters that are configured for the request header. See
header_parameters
below. - Query
String List<Pulumi.Parameters Ali Cloud. Event Bridge. Inputs. Connection Auth Parameters Oauth Parameters Oauth Http Parameters Query String Parameter> - The parameters that are configured for the request path. See
query_string_parameters
below.
- Body
Parameters []ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Body Parameter - The parameters that are configured for the request body. See
body_parameters
below. - Header
Parameters []ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Header Parameter - The parameters that are configured for the request header. See
header_parameters
below. - Query
String []ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters Query String Parameter - The parameters that are configured for the request path. See
query_string_parameters
below.
- body
Parameters List<ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Body Parameter> - The parameters that are configured for the request body. See
body_parameters
below. - header
Parameters List<ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Header Parameter> - The parameters that are configured for the request header. See
header_parameters
below. - query
String List<ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters Query String Parameter> - The parameters that are configured for the request path. See
query_string_parameters
below.
- body
Parameters ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Body Parameter[] - The parameters that are configured for the request body. See
body_parameters
below. - header
Parameters ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Header Parameter[] - The parameters that are configured for the request header. See
header_parameters
below. - query
String ConnectionParameters Auth Parameters Oauth Parameters Oauth Http Parameters Query String Parameter[] - The parameters that are configured for the request path. See
query_string_parameters
below.
- body_
parameters Sequence[ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Body Parameter] - The parameters that are configured for the request body. See
body_parameters
below. - header_
parameters Sequence[ConnectionAuth Parameters Oauth Parameters Oauth Http Parameters Header Parameter] - The parameters that are configured for the request header. See
header_parameters
below. - query_
string_ Sequence[Connectionparameters Auth Parameters Oauth Parameters Oauth Http Parameters Query String Parameter] - The parameters that are configured for the request path. See
query_string_parameters
below.
- body
Parameters List<Property Map> - The parameters that are configured for the request body. See
body_parameters
below. - header
Parameters List<Property Map> - The parameters that are configured for the request header. See
header_parameters
below. - query
String List<Property Map>Parameters - The parameters that are configured for the request path. See
query_string_parameters
below.
ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
- is
Value stringSecret - Specifies whether to enable authentication.
- key string
- The key of the request path.
- value string
- The key of the request path.
- is_
value_ strsecret - Specifies whether to enable authentication.
- key str
- The key of the request path.
- value str
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
- is
Value stringSecret - Specifies whether to enable authentication.
- key string
- The key of the request path.
- value string
- The key of the request path.
- is_
value_ strsecret - Specifies whether to enable authentication.
- key str
- The key of the request path.
- value str
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- Is
Value stringSecret - Specifies whether to enable authentication.
- Key string
- The key of the request path.
- Value string
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
- is
Value stringSecret - Specifies whether to enable authentication.
- key string
- The key of the request path.
- value string
- The key of the request path.
- is_
value_ strsecret - Specifies whether to enable authentication.
- key str
- The key of the request path.
- value str
- The key of the request path.
- is
Value StringSecret - Specifies whether to enable authentication.
- key String
- The key of the request path.
- value String
- The key of the request path.
ConnectionNetworkParameters, ConnectionNetworkParametersArgs
- Network
Type string - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - Security
Group stringId - The ID of the security group.
- Vpc
Id string - The ID of the VPC.
- Vswitche
Id string - The ID of the VSwitch.
- Network
Type string - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - Security
Group stringId - The ID of the security group.
- Vpc
Id string - The ID of the VPC.
- Vswitche
Id string - The ID of the VSwitch.
- network
Type String - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - security
Group StringId - The ID of the security group.
- vpc
Id String - The ID of the VPC.
- vswitche
Id String - The ID of the VSwitch.
- network
Type string - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - security
Group stringId - The ID of the security group.
- vpc
Id string - The ID of the VPC.
- vswitche
Id string - The ID of the VSwitch.
- network_
type str - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - security_
group_ strid - The ID of the security group.
- vpc_
id str - The ID of the VPC.
- vswitche_
id str - The ID of the VSwitch.
- network
Type String - The network type. Valid values:
PublicNetwork
,PrivateNetwork
. NOTE: If you setnetwork_type
toPrivateNetwork
, you must configurevpc_id
,vswitche_id
, andsecurity_group_id
. - security
Group StringId - The ID of the security group.
- vpc
Id String - The ID of the VPC.
- vswitche
Id String - The ID of the VSwitch.
Import
Event Bridge Connection can be imported using the id, e.g.
$ pulumi import alicloud:eventbridge/connection:Connection example <id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.