1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eventbridge
  5. Connection
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.eventbridge.Connection

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

    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 defaultZones = alicloud.getZones({});
    const defaultNetwork = new alicloud.vpc.Network("defaultNetwork", {
        vpcName: name,
        cidrBlock: "172.16.0.0/16",
    });
    const defaultSwitch = new alicloud.vpc.Switch("defaultSwitch", {
        vpcId: defaultNetwork.id,
        cidrBlock: "172.16.0.0/24",
        zoneId: defaultZones.then(defaultZones => defaultZones.zones?.[0]?.id),
        vswitchName: name,
    });
    const defaultSecurityGroup = new alicloud.ecs.SecurityGroup("defaultSecurityGroup", {vpcId: defaultSwitch.vpcId});
    const defaultConnection = new alicloud.eventbridge.Connection("defaultConnection", {
        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_zones = alicloud.get_zones()
    default_network = alicloud.vpc.Network("defaultNetwork",
        vpc_name=name,
        cidr_block="172.16.0.0/16")
    default_switch = alicloud.vpc.Switch("defaultSwitch",
        vpc_id=default_network.id,
        cidr_block="172.16.0.0/24",
        zone_id=default_zones.zones[0].id,
        vswitch_name=name)
    default_security_group = alicloud.ecs.SecurityGroup("defaultSecurityGroup", vpc_id=default_switch.vpc_id)
    default_connection = alicloud.eventbridge.Connection("defaultConnection",
        connection_name=name,
        description="test-connection-basic-pre",
        network_parameters=alicloud.eventbridge.ConnectionNetworkParametersArgs(
            network_type="PublicNetwork",
            vpc_id=default_network.id,
            vswitche_id=default_switch.id,
            security_group_id=default_security_group.id,
        ),
        auth_parameters=alicloud.eventbridge.ConnectionAuthParametersArgs(
            authorization_type="BASIC_AUTH",
            api_key_auth_parameters=alicloud.eventbridge.ConnectionAuthParametersApiKeyAuthParametersArgs(
                api_key_name="Token",
                api_key_value="Token-value",
            ),
            basic_auth_parameters=alicloud.eventbridge.ConnectionAuthParametersBasicAuthParametersArgs(
                username="admin",
                password="admin",
            ),
            oauth_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersArgs(
                authorization_endpoint="http://127.0.0.1:8080",
                http_method="POST",
                client_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersClientParametersArgs(
                    client_id="ClientId",
                    client_secret="ClientSecret",
                ),
                oauth_http_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs(
                    header_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs(
                        key="name",
                        value="name",
                        is_value_secret="true",
                    )],
                    body_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs(
                        key="name",
                        value="name",
                        is_value_secret="true",
                    )],
                    query_string_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs(
                        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
    		}
    		defaultZones, err := alicloud.GetZones(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		defaultNetwork, err := vpc.NewNetwork(ctx, "defaultNetwork", &vpc.NetworkArgs{
    			VpcName:   pulumi.String(name),
    			CidrBlock: pulumi.String("172.16.0.0/16"),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSwitch, err := vpc.NewSwitch(ctx, "defaultSwitch", &vpc.SwitchArgs{
    			VpcId:       defaultNetwork.ID(),
    			CidrBlock:   pulumi.String("172.16.0.0/24"),
    			ZoneId:      pulumi.String(defaultZones.Zones[0].Id),
    			VswitchName: pulumi.String(name),
    		})
    		if err != nil {
    			return err
    		}
    		defaultSecurityGroup, err := ecs.NewSecurityGroup(ctx, "defaultSecurityGroup", &ecs.SecurityGroupArgs{
    			VpcId: defaultSwitch.VpcId,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = eventbridge.NewConnection(ctx, "defaultConnection", &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 defaultZones = AliCloud.GetZones.Invoke();
    
        var defaultNetwork = new AliCloud.Vpc.Network("defaultNetwork", new()
        {
            VpcName = name,
            CidrBlock = "172.16.0.0/16",
        });
    
        var defaultSwitch = new AliCloud.Vpc.Switch("defaultSwitch", new()
        {
            VpcId = defaultNetwork.Id,
            CidrBlock = "172.16.0.0/24",
            ZoneId = defaultZones.Apply(getZonesResult => getZonesResult.Zones[0]?.Id),
            VswitchName = name,
        });
    
        var defaultSecurityGroup = new AliCloud.Ecs.SecurityGroup("defaultSecurityGroup", new()
        {
            VpcId = defaultSwitch.VpcId,
        });
    
        var defaultConnection = new AliCloud.EventBridge.Connection("defaultConnection", 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 defaultZones = 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(defaultZones.applyValue(getZonesResult -> getZonesResult.zones()[0].id()))
                .vswitchName(name)
                .build());
    
            var defaultSecurityGroup = new SecurityGroup("defaultSecurityGroup", SecurityGroupArgs.builder()        
                .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
        properties:
          vpcName: ${name}
          cidrBlock: 172.16.0.0/16
      defaultSwitch:
        type: alicloud:vpc:Switch
        properties:
          vpcId: ${defaultNetwork.id}
          cidrBlock: 172.16.0.0/24
          zoneId: ${defaultZones.zones[0].id}
          vswitchName: ${name}
      defaultSecurityGroup:
        type: alicloud:ecs:SecurityGroup
        properties:
          vpcId: ${defaultSwitch.vpcId}
      defaultConnection:
        type: alicloud:eventbridge:Connection
        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:
      defaultZones:
        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.

    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=alicloud.eventbridge.ConnectionNetworkParametersArgs(
            network_type="string",
            security_group_id="string",
            vpc_id="string",
            vswitche_id="string",
        ),
        auth_parameters=alicloud.eventbridge.ConnectionAuthParametersArgs(
            api_key_auth_parameters=alicloud.eventbridge.ConnectionAuthParametersApiKeyAuthParametersArgs(
                api_key_name="string",
                api_key_value="string",
            ),
            authorization_type="string",
            basic_auth_parameters=alicloud.eventbridge.ConnectionAuthParametersBasicAuthParametersArgs(
                password="string",
                username="string",
            ),
            oauth_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersArgs(
                authorization_endpoint="string",
                client_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersClientParametersArgs(
                    client_id="string",
                    client_secret="string",
                ),
                http_method="string",
                oauth_http_parameters=alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersArgs(
                    body_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs(
                        is_value_secret="string",
                        key="string",
                        value="string",
                    )],
                    header_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs(
                        is_value_secret="string",
                        key="string",
                        value="string",
                    )],
                    query_string_parameters=[alicloud.eventbridge.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs(
                        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

    The Connection resource accepts the following input properties:

    ConnectionName string
    The name of the connection.
    NetworkParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    AuthParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParameters
    The parameters that are configured for authentication. See auth_parameters below.
    Description string
    The description of the connection.
    ConnectionName string
    The name of the connection.
    NetworkParameters ConnectionNetworkParametersArgs
    The parameters that are configured for the network. See network_parameters below.
    AuthParameters ConnectionAuthParametersArgs
    The parameters that are configured for authentication. See auth_parameters below.
    Description string
    The description of the connection.
    connectionName String
    The name of the connection.
    networkParameters ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    authParameters ConnectionAuthParameters
    The parameters that are configured for authentication. See auth_parameters below.
    description String
    The description of the connection.
    connectionName string
    The name of the connection.
    networkParameters ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    authParameters ConnectionAuthParameters
    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 ConnectionNetworkParametersArgs
    The parameters that are configured for the network. See network_parameters below.
    auth_parameters ConnectionAuthParametersArgs
    The parameters that are configured for authentication. See auth_parameters below.
    description str
    The description of the connection.
    connectionName String
    The name of the connection.
    networkParameters Property Map
    The parameters that are configured for the network. See network_parameters below.
    authParameters 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:

    CreateTime string
    The creation time of the Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    The creation time of the Connection.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    The creation time of the Connection.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime 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.
    createTime 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.
    The following state arguments are supported:
    AuthParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParameters
    The parameters that are configured for authentication. See auth_parameters below.
    ConnectionName string
    The name of the connection.
    CreateTime string
    The creation time of the Connection.
    Description string
    The description of the connection.
    NetworkParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    AuthParameters ConnectionAuthParametersArgs
    The parameters that are configured for authentication. See auth_parameters below.
    ConnectionName string
    The name of the connection.
    CreateTime string
    The creation time of the Connection.
    Description string
    The description of the connection.
    NetworkParameters ConnectionNetworkParametersArgs
    The parameters that are configured for the network. See network_parameters below.
    authParameters ConnectionAuthParameters
    The parameters that are configured for authentication. See auth_parameters below.
    connectionName String
    The name of the connection.
    createTime String
    The creation time of the Connection.
    description String
    The description of the connection.
    networkParameters ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    authParameters ConnectionAuthParameters
    The parameters that are configured for authentication. See auth_parameters below.
    connectionName string
    The name of the connection.
    createTime string
    The creation time of the Connection.
    description string
    The description of the connection.
    networkParameters ConnectionNetworkParameters
    The parameters that are configured for the network. See network_parameters below.
    auth_parameters ConnectionAuthParametersArgs
    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 ConnectionNetworkParametersArgs
    The parameters that are configured for the network. See network_parameters below.
    authParameters Property Map
    The parameters that are configured for authentication. See auth_parameters below.
    connectionName String
    The name of the connection.
    createTime String
    The creation time of the Connection.
    description String
    The description of the connection.
    networkParameters Property Map
    The parameters that are configured for the network. See network_parameters below.

    Supporting Types

    ConnectionAuthParameters, ConnectionAuthParametersArgs

    ApiKeyAuthParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersApiKeyAuthParameters
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    AuthorizationType string
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    BasicAuthParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersBasicAuthParameters
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    OauthParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParameters
    The parameters that are configured for OAuth authentication. See oauth_parameters below.
    ApiKeyAuthParameters ConnectionAuthParametersApiKeyAuthParameters
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    AuthorizationType string
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    BasicAuthParameters ConnectionAuthParametersBasicAuthParameters
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    OauthParameters ConnectionAuthParametersOauthParameters
    The parameters that are configured for OAuth authentication. See oauth_parameters below.
    apiKeyAuthParameters ConnectionAuthParametersApiKeyAuthParameters
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    authorizationType String
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    basicAuthParameters ConnectionAuthParametersBasicAuthParameters
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    oauthParameters ConnectionAuthParametersOauthParameters
    The parameters that are configured for OAuth authentication. See oauth_parameters below.
    apiKeyAuthParameters ConnectionAuthParametersApiKeyAuthParameters
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    authorizationType string
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    basicAuthParameters ConnectionAuthParametersBasicAuthParameters
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    oauthParameters ConnectionAuthParametersOauthParameters
    The parameters that are configured for OAuth authentication. See oauth_parameters below.
    api_key_auth_parameters ConnectionAuthParametersApiKeyAuthParameters
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    authorization_type str
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    basic_auth_parameters ConnectionAuthParametersBasicAuthParameters
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    oauth_parameters ConnectionAuthParametersOauthParameters
    The parameters that are configured for OAuth authentication. See oauth_parameters below.
    apiKeyAuthParameters Property Map
    The parameters that are configured for API key authentication. See api_key_auth_parameters below.
    authorizationType String
    The type of the authentication. Valid values: API_KEY_AUTH, BASIC_AUTH, OAUTH_AUTH.
    basicAuthParameters Property Map
    The parameters that are configured for basic authentication. See basic_auth_parameters below.
    oauthParameters Property Map
    The parameters that are configured for OAuth authentication. See oauth_parameters below.

    ConnectionAuthParametersApiKeyAuthParameters, ConnectionAuthParametersApiKeyAuthParametersArgs

    ApiKeyName string
    The name of the API key.
    ApiKeyValue string
    The value of the API key.
    ApiKeyName string
    The name of the API key.
    ApiKeyValue string
    The value of the API key.
    apiKeyName String
    The name of the API key.
    apiKeyValue String
    The value of the API key.
    apiKeyName string
    The name of the API key.
    apiKeyValue string
    The value of the API key.
    api_key_name str
    The name of the API key.
    api_key_value str
    The value of the API key.
    apiKeyName String
    The name of the API key.
    apiKeyValue String
    The value of the API key.

    ConnectionAuthParametersBasicAuthParameters, ConnectionAuthParametersBasicAuthParametersArgs

    Password string
    The password for basic authentication.
    Username string
    The username for basic authentication.
    Password string
    The password for basic authentication.
    Username string
    The username for basic authentication.
    password String
    The password for basic authentication.
    username String
    The username for basic authentication.
    password string
    The password for basic authentication.
    username string
    The username for basic authentication.
    password str
    The password for basic authentication.
    username str
    The username for basic authentication.
    password String
    The password for basic authentication.
    username String
    The username for basic authentication.

    ConnectionAuthParametersOauthParameters, ConnectionAuthParametersOauthParametersArgs

    AuthorizationEndpoint string
    The IP address of the authorized endpoint.
    ClientParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersClientParameters
    The parameters that are configured for the client. See client_parameters below.
    HttpMethod string
    The HTTP request method. Valid values: GET, POST, HEAD, DELETE, PUT, PATCH.
    OauthHttpParameters Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParameters
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.
    AuthorizationEndpoint string
    The IP address of the authorized endpoint.
    ClientParameters ConnectionAuthParametersOauthParametersClientParameters
    The parameters that are configured for the client. See client_parameters below.
    HttpMethod string
    The HTTP request method. Valid values: GET, POST, HEAD, DELETE, PUT, PATCH.
    OauthHttpParameters ConnectionAuthParametersOauthParametersOauthHttpParameters
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.
    authorizationEndpoint String
    The IP address of the authorized endpoint.
    clientParameters ConnectionAuthParametersOauthParametersClientParameters
    The parameters that are configured for the client. See client_parameters below.
    httpMethod String
    The HTTP request method. Valid values: GET, POST, HEAD, DELETE, PUT, PATCH.
    oauthHttpParameters ConnectionAuthParametersOauthParametersOauthHttpParameters
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.
    authorizationEndpoint string
    The IP address of the authorized endpoint.
    clientParameters ConnectionAuthParametersOauthParametersClientParameters
    The parameters that are configured for the client. See client_parameters below.
    httpMethod string
    The HTTP request method. Valid values: GET, POST, HEAD, DELETE, PUT, PATCH.
    oauthHttpParameters ConnectionAuthParametersOauthParametersOauthHttpParameters
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.
    authorization_endpoint str
    The IP address of the authorized endpoint.
    client_parameters ConnectionAuthParametersOauthParametersClientParameters
    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_parameters ConnectionAuthParametersOauthParametersOauthHttpParameters
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.
    authorizationEndpoint String
    The IP address of the authorized endpoint.
    clientParameters Property Map
    The parameters that are configured for the client. See client_parameters below.
    httpMethod String
    The HTTP request method. Valid values: GET, POST, HEAD, DELETE, PUT, PATCH.
    oauthHttpParameters Property Map
    The request parameters that are configured for OAuth authentication. See oauth_http_parameters below.

    ConnectionAuthParametersOauthParametersClientParameters, ConnectionAuthParametersOauthParametersClientParametersArgs

    ClientId string
    The ID of the client.
    ClientSecret string
    The AccessKey secret of the client.
    ClientId string
    The ID of the client.
    ClientSecret string
    The AccessKey secret of the client.
    clientId String
    The ID of the client.
    clientSecret String
    The AccessKey secret of the client.
    clientId string
    The ID of the client.
    clientSecret string
    The AccessKey secret of the client.
    client_id str
    The ID of the client.
    client_secret str
    The AccessKey secret of the client.
    clientId String
    The ID of the client.
    clientSecret String
    The AccessKey secret of the client.

    ConnectionAuthParametersOauthParametersOauthHttpParameters, ConnectionAuthParametersOauthParametersOauthHttpParametersArgs

    BodyParameters List<Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter>
    The parameters that are configured for the request body. See body_parameters below.
    HeaderParameters List<Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter>
    The parameters that are configured for the request header. See header_parameters below.
    QueryStringParameters List<Pulumi.AliCloud.EventBridge.Inputs.ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter>
    The parameters that are configured for the request path. See query_string_parameters below.
    BodyParameters []ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter
    The parameters that are configured for the request body. See body_parameters below.
    HeaderParameters []ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter
    The parameters that are configured for the request header. See header_parameters below.
    QueryStringParameters []ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter
    The parameters that are configured for the request path. See query_string_parameters below.
    bodyParameters List<ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter>
    The parameters that are configured for the request body. See body_parameters below.
    headerParameters List<ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter>
    The parameters that are configured for the request header. See header_parameters below.
    queryStringParameters List<ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter>
    The parameters that are configured for the request path. See query_string_parameters below.
    bodyParameters ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter[]
    The parameters that are configured for the request body. See body_parameters below.
    headerParameters ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter[]
    The parameters that are configured for the request header. See header_parameters below.
    queryStringParameters ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter[]
    The parameters that are configured for the request path. See query_string_parameters below.
    body_parameters Sequence[ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter]
    The parameters that are configured for the request body. See body_parameters below.
    header_parameters Sequence[ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter]
    The parameters that are configured for the request header. See header_parameters below.
    query_string_parameters Sequence[ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter]
    The parameters that are configured for the request path. See query_string_parameters below.
    bodyParameters List<Property Map>
    The parameters that are configured for the request body. See body_parameters below.
    headerParameters List<Property Map>
    The parameters that are configured for the request header. See header_parameters below.
    queryStringParameters List<Property Map>
    The parameters that are configured for the request path. See query_string_parameters below.

    ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersBodyParameterArgs

    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.
    isValueSecret string
    Specifies whether to enable authentication.
    key string
    The key of the request path.
    value string
    The key of the request path.
    is_value_secret str
    Specifies whether to enable authentication.
    key str
    The key of the request path.
    value str
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.

    ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersHeaderParameterArgs

    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.
    isValueSecret string
    Specifies whether to enable authentication.
    key string
    The key of the request path.
    value string
    The key of the request path.
    is_value_secret str
    Specifies whether to enable authentication.
    key str
    The key of the request path.
    value str
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.

    ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameter, ConnectionAuthParametersOauthParametersOauthHttpParametersQueryStringParameterArgs

    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    IsValueSecret string
    Specifies whether to enable authentication.
    Key string
    The key of the request path.
    Value string
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.
    isValueSecret string
    Specifies whether to enable authentication.
    key string
    The key of the request path.
    value string
    The key of the request path.
    is_value_secret str
    Specifies whether to enable authentication.
    key str
    The key of the request path.
    value str
    The key of the request path.
    isValueSecret String
    Specifies whether to enable authentication.
    key String
    The key of the request path.
    value String
    The key of the request path.

    ConnectionNetworkParameters, ConnectionNetworkParametersArgs

    NetworkType string
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    SecurityGroupId string
    The ID of the security group.
    VpcId string
    The ID of the VPC.
    VswitcheId string
    The ID of the VSwitch.
    NetworkType string
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    SecurityGroupId string
    The ID of the security group.
    VpcId string
    The ID of the VPC.
    VswitcheId string
    The ID of the VSwitch.
    networkType String
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    securityGroupId String
    The ID of the security group.
    vpcId String
    The ID of the VPC.
    vswitcheId String
    The ID of the VSwitch.
    networkType string
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    securityGroupId string
    The ID of the security group.
    vpcId string
    The ID of the VPC.
    vswitcheId string
    The ID of the VSwitch.
    network_type str
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    security_group_id str
    The ID of the security group.
    vpc_id str
    The ID of the VPC.
    vswitche_id str
    The ID of the VSwitch.
    networkType String
    The network type. Valid values: PublicNetwork, PrivateNetwork. NOTE: If you set network_type to PrivateNetwork, you must configure vpc_id, vswitche_id, and security_group_id.
    securityGroupId String
    The ID of the security group.
    vpcId String
    The ID of the VPC.
    vswitcheId 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.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi