1. Packages
  2. Ibm Provider
  3. API Docs
  4. TgConnectionAction
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.TgConnectionAction

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create TgConnectionAction Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TgConnectionAction(name: string, args: TgConnectionActionArgs, opts?: CustomResourceOptions);
    @overload
    def TgConnectionAction(resource_name: str,
                           args: TgConnectionActionArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def TgConnectionAction(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           action: Optional[str] = None,
                           connection_id: Optional[str] = None,
                           gateway: Optional[str] = None,
                           tg_connection_action_id: Optional[str] = None,
                           timeouts: Optional[TgConnectionActionTimeoutsArgs] = None)
    func NewTgConnectionAction(ctx *Context, name string, args TgConnectionActionArgs, opts ...ResourceOption) (*TgConnectionAction, error)
    public TgConnectionAction(string name, TgConnectionActionArgs args, CustomResourceOptions? opts = null)
    public TgConnectionAction(String name, TgConnectionActionArgs args)
    public TgConnectionAction(String name, TgConnectionActionArgs args, CustomResourceOptions options)
    
    type: ibm:TgConnectionAction
    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 TgConnectionActionArgs
    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 TgConnectionActionArgs
    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 TgConnectionActionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TgConnectionActionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TgConnectionActionArgs
    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 tgConnectionActionResource = new Ibm.TgConnectionAction("tgConnectionActionResource", new()
    {
        Action = "string",
        ConnectionId = "string",
        Gateway = "string",
        TgConnectionActionId = "string",
        Timeouts = new Ibm.Inputs.TgConnectionActionTimeoutsArgs
        {
            Create = "string",
        },
    });
    
    example, err := ibm.NewTgConnectionAction(ctx, "tgConnectionActionResource", &ibm.TgConnectionActionArgs{
    	Action:               pulumi.String("string"),
    	ConnectionId:         pulumi.String("string"),
    	Gateway:              pulumi.String("string"),
    	TgConnectionActionId: pulumi.String("string"),
    	Timeouts: &ibm.TgConnectionActionTimeoutsArgs{
    		Create: pulumi.String("string"),
    	},
    })
    
    var tgConnectionActionResource = new TgConnectionAction("tgConnectionActionResource", TgConnectionActionArgs.builder()
        .action("string")
        .connectionId("string")
        .gateway("string")
        .tgConnectionActionId("string")
        .timeouts(TgConnectionActionTimeoutsArgs.builder()
            .create("string")
            .build())
        .build());
    
    tg_connection_action_resource = ibm.TgConnectionAction("tgConnectionActionResource",
        action="string",
        connection_id="string",
        gateway="string",
        tg_connection_action_id="string",
        timeouts={
            "create": "string",
        })
    
    const tgConnectionActionResource = new ibm.TgConnectionAction("tgConnectionActionResource", {
        action: "string",
        connectionId: "string",
        gateway: "string",
        tgConnectionActionId: "string",
        timeouts: {
            create: "string",
        },
    });
    
    type: ibm:TgConnectionAction
    properties:
        action: string
        connectionId: string
        gateway: string
        tgConnectionActionId: string
        timeouts:
            create: string
    

    TgConnectionAction 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 TgConnectionAction resource accepts the following input properties:

    Action string
    The Transit Gateway Connection cross account action
    ConnectionId string
    The Transit Gateway Connection identifier
    Gateway string
    The Transit Gateway identifier
    TgConnectionActionId string
    Timeouts TgConnectionActionTimeouts
    Action string
    The Transit Gateway Connection cross account action
    ConnectionId string
    The Transit Gateway Connection identifier
    Gateway string
    The Transit Gateway identifier
    TgConnectionActionId string
    Timeouts TgConnectionActionTimeoutsArgs
    action String
    The Transit Gateway Connection cross account action
    connectionId String
    The Transit Gateway Connection identifier
    gateway String
    The Transit Gateway identifier
    tgConnectionActionId String
    timeouts TgConnectionActionTimeouts
    action string
    The Transit Gateway Connection cross account action
    connectionId string
    The Transit Gateway Connection identifier
    gateway string
    The Transit Gateway identifier
    tgConnectionActionId string
    timeouts TgConnectionActionTimeouts
    action str
    The Transit Gateway Connection cross account action
    connection_id str
    The Transit Gateway Connection identifier
    gateway str
    The Transit Gateway identifier
    tg_connection_action_id str
    timeouts TgConnectionActionTimeoutsArgs
    action String
    The Transit Gateway Connection cross account action
    connectionId String
    The Transit Gateway Connection identifier
    gateway String
    The Transit Gateway identifier
    tgConnectionActionId String
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TgConnectionAction resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing TgConnectionAction Resource

    Get an existing TgConnectionAction 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?: TgConnectionActionState, opts?: CustomResourceOptions): TgConnectionAction
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            connection_id: Optional[str] = None,
            gateway: Optional[str] = None,
            tg_connection_action_id: Optional[str] = None,
            timeouts: Optional[TgConnectionActionTimeoutsArgs] = None) -> TgConnectionAction
    func GetTgConnectionAction(ctx *Context, name string, id IDInput, state *TgConnectionActionState, opts ...ResourceOption) (*TgConnectionAction, error)
    public static TgConnectionAction Get(string name, Input<string> id, TgConnectionActionState? state, CustomResourceOptions? opts = null)
    public static TgConnectionAction get(String name, Output<String> id, TgConnectionActionState state, CustomResourceOptions options)
    resources:  _:    type: ibm:TgConnectionAction    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Action string
    The Transit Gateway Connection cross account action
    ConnectionId string
    The Transit Gateway Connection identifier
    Gateway string
    The Transit Gateway identifier
    TgConnectionActionId string
    Timeouts TgConnectionActionTimeouts
    Action string
    The Transit Gateway Connection cross account action
    ConnectionId string
    The Transit Gateway Connection identifier
    Gateway string
    The Transit Gateway identifier
    TgConnectionActionId string
    Timeouts TgConnectionActionTimeoutsArgs
    action String
    The Transit Gateway Connection cross account action
    connectionId String
    The Transit Gateway Connection identifier
    gateway String
    The Transit Gateway identifier
    tgConnectionActionId String
    timeouts TgConnectionActionTimeouts
    action string
    The Transit Gateway Connection cross account action
    connectionId string
    The Transit Gateway Connection identifier
    gateway string
    The Transit Gateway identifier
    tgConnectionActionId string
    timeouts TgConnectionActionTimeouts
    action str
    The Transit Gateway Connection cross account action
    connection_id str
    The Transit Gateway Connection identifier
    gateway str
    The Transit Gateway identifier
    tg_connection_action_id str
    timeouts TgConnectionActionTimeoutsArgs
    action String
    The Transit Gateway Connection cross account action
    connectionId String
    The Transit Gateway Connection identifier
    gateway String
    The Transit Gateway identifier
    tgConnectionActionId String
    timeouts Property Map

    Supporting Types

    TgConnectionActionTimeouts, TgConnectionActionTimeoutsArgs

    Create string
    Create string
    create String
    create string
    create str
    create String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud