ibm.ContainerVpcAlbCreate
Explore with Pulumi AI
Creates a new Application Load Balancer (ALB) for a VPC cluster. For more information, about IBM container VPC ALB, see VPC: Exposing apps with load balancers for VPC.
Example Usage
In the following example, you can configure a ALB:
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const alb = new ibm.ContainerVpcAlbCreate("alb", {
cluster: "exampleClusterID",
enable: true,
resourceGroupId: "123456",
type: "private",
zone: "us-south-1",
});
import pulumi
import pulumi_ibm as ibm
alb = ibm.ContainerVpcAlbCreate("alb",
cluster="exampleClusterID",
enable=True,
resource_group_id="123456",
type="private",
zone="us-south-1")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.NewContainerVpcAlbCreate(ctx, "alb", &ibm.ContainerVpcAlbCreateArgs{
Cluster: pulumi.String("exampleClusterID"),
Enable: pulumi.Bool(true),
ResourceGroupId: pulumi.String("123456"),
Type: pulumi.String("private"),
Zone: pulumi.String("us-south-1"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var alb = new Ibm.ContainerVpcAlbCreate("alb", new()
{
Cluster = "exampleClusterID",
Enable = true,
ResourceGroupId = "123456",
Type = "private",
Zone = "us-south-1",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.ContainerVpcAlbCreate;
import com.pulumi.ibm.ContainerVpcAlbCreateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var alb = new ContainerVpcAlbCreate("alb", ContainerVpcAlbCreateArgs.builder()
.cluster("exampleClusterID")
.enable("true")
.resourceGroupId("123456")
.type("private")
.zone("us-south-1")
.build());
}
}
resources:
alb:
type: ibm:ContainerVpcAlbCreate
properties:
cluster: exampleClusterID
enable: 'true'
resourceGroupId: '123456'
type: private
zone: us-south-1
Create ContainerVpcAlbCreate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerVpcAlbCreate(name: string, args: ContainerVpcAlbCreateArgs, opts?: CustomResourceOptions);
@overload
def ContainerVpcAlbCreate(resource_name: str,
args: ContainerVpcAlbCreateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerVpcAlbCreate(resource_name: str,
opts: Optional[ResourceOptions] = None,
cluster: Optional[str] = None,
type: Optional[str] = None,
zone: Optional[str] = None,
container_vpc_alb_create_id: Optional[str] = None,
enable: Optional[bool] = None,
resource_group_id: Optional[str] = None,
timeouts: Optional[ContainerVpcAlbCreateTimeoutsArgs] = None)
func NewContainerVpcAlbCreate(ctx *Context, name string, args ContainerVpcAlbCreateArgs, opts ...ResourceOption) (*ContainerVpcAlbCreate, error)
public ContainerVpcAlbCreate(string name, ContainerVpcAlbCreateArgs args, CustomResourceOptions? opts = null)
public ContainerVpcAlbCreate(String name, ContainerVpcAlbCreateArgs args)
public ContainerVpcAlbCreate(String name, ContainerVpcAlbCreateArgs args, CustomResourceOptions options)
type: ibm:ContainerVpcAlbCreate
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 ContainerVpcAlbCreateArgs
- 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 ContainerVpcAlbCreateArgs
- 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 ContainerVpcAlbCreateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerVpcAlbCreateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerVpcAlbCreateArgs
- 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 containerVpcAlbCreateResource = new Ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource", new()
{
Cluster = "string",
Type = "string",
Zone = "string",
ContainerVpcAlbCreateId = "string",
Enable = false,
ResourceGroupId = "string",
Timeouts = new Ibm.Inputs.ContainerVpcAlbCreateTimeoutsArgs
{
Create = "string",
Update = "string",
},
});
example, err := ibm.NewContainerVpcAlbCreate(ctx, "containerVpcAlbCreateResource", &ibm.ContainerVpcAlbCreateArgs{
Cluster: pulumi.String("string"),
Type: pulumi.String("string"),
Zone: pulumi.String("string"),
ContainerVpcAlbCreateId: pulumi.String("string"),
Enable: pulumi.Bool(false),
ResourceGroupId: pulumi.String("string"),
Timeouts: &ibm.ContainerVpcAlbCreateTimeoutsArgs{
Create: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var containerVpcAlbCreateResource = new ContainerVpcAlbCreate("containerVpcAlbCreateResource", ContainerVpcAlbCreateArgs.builder()
.cluster("string")
.type("string")
.zone("string")
.containerVpcAlbCreateId("string")
.enable(false)
.resourceGroupId("string")
.timeouts(ContainerVpcAlbCreateTimeoutsArgs.builder()
.create("string")
.update("string")
.build())
.build());
container_vpc_alb_create_resource = ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource",
cluster="string",
type="string",
zone="string",
container_vpc_alb_create_id="string",
enable=False,
resource_group_id="string",
timeouts={
"create": "string",
"update": "string",
})
const containerVpcAlbCreateResource = new ibm.ContainerVpcAlbCreate("containerVpcAlbCreateResource", {
cluster: "string",
type: "string",
zone: "string",
containerVpcAlbCreateId: "string",
enable: false,
resourceGroupId: "string",
timeouts: {
create: "string",
update: "string",
},
});
type: ibm:ContainerVpcAlbCreate
properties:
cluster: string
containerVpcAlbCreateId: string
enable: false
resourceGroupId: string
timeouts:
create: string
update: string
type: string
zone: string
ContainerVpcAlbCreate 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 ContainerVpcAlbCreate resource accepts the following input properties:
- Cluster string
- The name of the cluster where the ALB is going to be created
- Type string
- The ALB type. Supported values are
public
andprivate
. - Zone string
- The name of the zone.
- Container
Vpc stringAlb Create Id - Enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - Timeouts
Container
Vpc Alb Create Timeouts
- Cluster string
- The name of the cluster where the ALB is going to be created
- Type string
- The ALB type. Supported values are
public
andprivate
. - Zone string
- The name of the zone.
- Container
Vpc stringAlb Create Id - Enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - Timeouts
Container
Vpc Alb Create Timeouts Args
- cluster String
- The name of the cluster where the ALB is going to be created
- type String
- The ALB type. Supported values are
public
andprivate
. - zone String
- The name of the zone.
- container
Vpc StringAlb Create Id - enable Boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - timeouts
Container
Vpc Alb Create Timeouts
- cluster string
- The name of the cluster where the ALB is going to be created
- type string
- The ALB type. Supported values are
public
andprivate
. - zone string
- The name of the zone.
- container
Vpc stringAlb Create Id - enable boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - timeouts
Container
Vpc Alb Create Timeouts
- cluster str
- The name of the cluster where the ALB is going to be created
- type str
- The ALB type. Supported values are
public
andprivate
. - zone str
- The name of the zone.
- container_
vpc_ stralb_ create_ id - enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- resource_
group_ strid - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - timeouts
Container
Vpc Alb Create Timeouts Args
- cluster String
- The name of the cluster where the ALB is going to be created
- type String
- The ALB type. Supported values are
public
andprivate
. - zone String
- The name of the zone.
- container
Vpc StringAlb Create Id - enable Boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerVpcAlbCreate resource produces the following output properties:
- Alb
Id string - (String) The unique identifier of the application load balancer.
- Alb
Type string - (String) The ALB type.
- Disable
Deployment bool - (Bool) Disable the ALB instance in the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringHostname - (String) The host name of the ALB.
- Name string
- (String) The name of the ALB.
- Resize bool
- (Bool) Resize of the ALB.
- State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- Alb
Id string - (String) The unique identifier of the application load balancer.
- Alb
Type string - (String) The ALB type.
- Disable
Deployment bool - (Bool) Disable the ALB instance in the cluster
- Id string
- The provider-assigned unique ID for this managed resource.
- Load
Balancer stringHostname - (String) The host name of the ALB.
- Name string
- (String) The name of the ALB.
- Resize bool
- (Bool) Resize of the ALB.
- State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- alb
Id String - (String) The unique identifier of the application load balancer.
- alb
Type String - (String) The ALB type.
- disable
Deployment Boolean - (Bool) Disable the ALB instance in the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringHostname - (String) The host name of the ALB.
- name String
- (String) The name of the ALB.
- resize Boolean
- (Bool) Resize of the ALB.
- state String
- (String) ALB state.
- status String
- (String) The status of ALB.
- alb
Id string - (String) The unique identifier of the application load balancer.
- alb
Type string - (String) The ALB type.
- disable
Deployment boolean - (Bool) Disable the ALB instance in the cluster
- id string
- The provider-assigned unique ID for this managed resource.
- load
Balancer stringHostname - (String) The host name of the ALB.
- name string
- (String) The name of the ALB.
- resize boolean
- (Bool) Resize of the ALB.
- state string
- (String) ALB state.
- status string
- (String) The status of ALB.
- alb_
id str - (String) The unique identifier of the application load balancer.
- alb_
type str - (String) The ALB type.
- disable_
deployment bool - (Bool) Disable the ALB instance in the cluster
- id str
- The provider-assigned unique ID for this managed resource.
- load_
balancer_ strhostname - (String) The host name of the ALB.
- name str
- (String) The name of the ALB.
- resize bool
- (Bool) Resize of the ALB.
- state str
- (String) ALB state.
- status str
- (String) The status of ALB.
- alb
Id String - (String) The unique identifier of the application load balancer.
- alb
Type String - (String) The ALB type.
- disable
Deployment Boolean - (Bool) Disable the ALB instance in the cluster
- id String
- The provider-assigned unique ID for this managed resource.
- load
Balancer StringHostname - (String) The host name of the ALB.
- name String
- (String) The name of the ALB.
- resize Boolean
- (Bool) Resize of the ALB.
- state String
- (String) ALB state.
- status String
- (String) The status of ALB.
Look up Existing ContainerVpcAlbCreate Resource
Get an existing ContainerVpcAlbCreate 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?: ContainerVpcAlbCreateState, opts?: CustomResourceOptions): ContainerVpcAlbCreate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
alb_id: Optional[str] = None,
alb_type: Optional[str] = None,
cluster: Optional[str] = None,
container_vpc_alb_create_id: Optional[str] = None,
disable_deployment: Optional[bool] = None,
enable: Optional[bool] = None,
load_balancer_hostname: Optional[str] = None,
name: Optional[str] = None,
resize: Optional[bool] = None,
resource_group_id: Optional[str] = None,
state: Optional[str] = None,
status: Optional[str] = None,
timeouts: Optional[ContainerVpcAlbCreateTimeoutsArgs] = None,
type: Optional[str] = None,
zone: Optional[str] = None) -> ContainerVpcAlbCreate
func GetContainerVpcAlbCreate(ctx *Context, name string, id IDInput, state *ContainerVpcAlbCreateState, opts ...ResourceOption) (*ContainerVpcAlbCreate, error)
public static ContainerVpcAlbCreate Get(string name, Input<string> id, ContainerVpcAlbCreateState? state, CustomResourceOptions? opts = null)
public static ContainerVpcAlbCreate get(String name, Output<String> id, ContainerVpcAlbCreateState state, CustomResourceOptions options)
resources: _: type: ibm:ContainerVpcAlbCreate 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.
- Alb
Id string - (String) The unique identifier of the application load balancer.
- Alb
Type string - (String) The ALB type.
- Cluster string
- The name of the cluster where the ALB is going to be created
- Container
Vpc stringAlb Create Id - Disable
Deployment bool - (Bool) Disable the ALB instance in the cluster
- Enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- Load
Balancer stringHostname - (String) The host name of the ALB.
- Name string
- (String) The name of the ALB.
- Resize bool
- (Bool) Resize of the ALB.
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- Timeouts
Container
Vpc Alb Create Timeouts - Type string
- The ALB type. Supported values are
public
andprivate
. - Zone string
- The name of the zone.
- Alb
Id string - (String) The unique identifier of the application load balancer.
- Alb
Type string - (String) The ALB type.
- Cluster string
- The name of the cluster where the ALB is going to be created
- Container
Vpc stringAlb Create Id - Disable
Deployment bool - (Bool) Disable the ALB instance in the cluster
- Enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- Load
Balancer stringHostname - (String) The host name of the ALB.
- Name string
- (String) The name of the ALB.
- Resize bool
- (Bool) Resize of the ALB.
- Resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - State string
- (String) ALB state.
- Status string
- (String) The status of ALB.
- Timeouts
Container
Vpc Alb Create Timeouts Args - Type string
- The ALB type. Supported values are
public
andprivate
. - Zone string
- The name of the zone.
- alb
Id String - (String) The unique identifier of the application load balancer.
- alb
Type String - (String) The ALB type.
- cluster String
- The name of the cluster where the ALB is going to be created
- container
Vpc StringAlb Create Id - disable
Deployment Boolean - (Bool) Disable the ALB instance in the cluster
- enable Boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- load
Balancer StringHostname - (String) The host name of the ALB.
- name String
- (String) The name of the ALB.
- resize Boolean
- (Bool) Resize of the ALB.
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - state String
- (String) ALB state.
- status String
- (String) The status of ALB.
- timeouts
Container
Vpc Alb Create Timeouts - type String
- The ALB type. Supported values are
public
andprivate
. - zone String
- The name of the zone.
- alb
Id string - (String) The unique identifier of the application load balancer.
- alb
Type string - (String) The ALB type.
- cluster string
- The name of the cluster where the ALB is going to be created
- container
Vpc stringAlb Create Id - disable
Deployment boolean - (Bool) Disable the ALB instance in the cluster
- enable boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- load
Balancer stringHostname - (String) The host name of the ALB.
- name string
- (String) The name of the ALB.
- resize boolean
- (Bool) Resize of the ALB.
- resource
Group stringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - state string
- (String) ALB state.
- status string
- (String) The status of ALB.
- timeouts
Container
Vpc Alb Create Timeouts - type string
- The ALB type. Supported values are
public
andprivate
. - zone string
- The name of the zone.
- alb_
id str - (String) The unique identifier of the application load balancer.
- alb_
type str - (String) The ALB type.
- cluster str
- The name of the cluster where the ALB is going to be created
- container_
vpc_ stralb_ create_ id - disable_
deployment bool - (Bool) Disable the ALB instance in the cluster
- enable bool
- If set to true, the ALB in your cluster is enabled. Defaults to true
- load_
balancer_ strhostname - (String) The host name of the ALB.
- name str
- (String) The name of the ALB.
- resize bool
- (Bool) Resize of the ALB.
- resource_
group_ strid - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - state str
- (String) ALB state.
- status str
- (String) The status of ALB.
- timeouts
Container
Vpc Alb Create Timeouts Args - type str
- The ALB type. Supported values are
public
andprivate
. - zone str
- The name of the zone.
- alb
Id String - (String) The unique identifier of the application load balancer.
- alb
Type String - (String) The ALB type.
- cluster String
- The name of the cluster where the ALB is going to be created
- container
Vpc StringAlb Create Id - disable
Deployment Boolean - (Bool) Disable the ALB instance in the cluster
- enable Boolean
- If set to true, the ALB in your cluster is enabled. Defaults to true
- load
Balancer StringHostname - (String) The host name of the ALB.
- name String
- (String) The name of the ALB.
- resize Boolean
- (Bool) Resize of the ALB.
- resource
Group StringId - The ID of the resource group where your cluster is provisioned into. To list resource groups, run
ibmcloud resource groups
or use theibm.ResourceGroup
data source. - state String
- (String) ALB state.
- status String
- (String) The status of ALB.
- timeouts Property Map
- type String
- The ALB type. Supported values are
public
andprivate
. - zone String
- The name of the zone.
Supporting Types
ContainerVpcAlbCreateTimeouts, ContainerVpcAlbCreateTimeoutsArgs
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibm
Terraform Provider.