1. Packages
  2. Ibm Provider
  3. API Docs
  4. CodeEngineBinding
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.CodeEngineBinding

Explore with Pulumi AI

Create, update, and delete code_engine_bindings with this resource. A secret with format service_access is required to create a binding.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const codeEngineBindingInstance = new ibm.CodeEngineBinding("codeEngineBindingInstance", {
    component: {
        name: "my-app-1",
        resourceType: "app_v2",
    },
    prefix: "MY_COS",
    projectId: "15314cc3-85b4-4338-903f-c28cdee6d005",
    secretName: "my-service-access",
});
Copy
import pulumi
import pulumi_ibm as ibm

code_engine_binding_instance = ibm.CodeEngineBinding("codeEngineBindingInstance",
    component={
        "name": "my-app-1",
        "resource_type": "app_v2",
    },
    prefix="MY_COS",
    project_id="15314cc3-85b4-4338-903f-c28cdee6d005",
    secret_name="my-service-access")
Copy
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.NewCodeEngineBinding(ctx, "codeEngineBindingInstance", &ibm.CodeEngineBindingArgs{
			Component: &ibm.CodeEngineBindingComponentArgs{
				Name:         pulumi.String("my-app-1"),
				ResourceType: pulumi.String("app_v2"),
			},
			Prefix:     pulumi.String("MY_COS"),
			ProjectId:  pulumi.String("15314cc3-85b4-4338-903f-c28cdee6d005"),
			SecretName: pulumi.String("my-service-access"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var codeEngineBindingInstance = new Ibm.CodeEngineBinding("codeEngineBindingInstance", new()
    {
        Component = new Ibm.Inputs.CodeEngineBindingComponentArgs
        {
            Name = "my-app-1",
            ResourceType = "app_v2",
        },
        Prefix = "MY_COS",
        ProjectId = "15314cc3-85b4-4338-903f-c28cdee6d005",
        SecretName = "my-service-access",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.CodeEngineBinding;
import com.pulumi.ibm.CodeEngineBindingArgs;
import com.pulumi.ibm.inputs.CodeEngineBindingComponentArgs;
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 codeEngineBindingInstance = new CodeEngineBinding("codeEngineBindingInstance", CodeEngineBindingArgs.builder()
            .component(CodeEngineBindingComponentArgs.builder()
                .name("my-app-1")
                .resourceType("app_v2")
                .build())
            .prefix("MY_COS")
            .projectId("15314cc3-85b4-4338-903f-c28cdee6d005")
            .secretName("my-service-access")
            .build());

    }
}
Copy
resources:
  codeEngineBindingInstance:
    type: ibm:CodeEngineBinding
    properties:
      component:
        name: my-app-1
        resourceType: app_v2
      prefix: MY_COS
      projectId: 15314cc3-85b4-4338-903f-c28cdee6d005
      secretName: my-service-access
Copy

Create CodeEngineBinding Resource

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

Constructor syntax

new CodeEngineBinding(name: string, args: CodeEngineBindingArgs, opts?: CustomResourceOptions);
@overload
def CodeEngineBinding(resource_name: str,
                      args: CodeEngineBindingArgs,
                      opts: Optional[ResourceOptions] = None)

@overload
def CodeEngineBinding(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      component: Optional[CodeEngineBindingComponentArgs] = None,
                      prefix: Optional[str] = None,
                      project_id: Optional[str] = None,
                      secret_name: Optional[str] = None,
                      code_engine_binding_id: Optional[str] = None,
                      timeouts: Optional[CodeEngineBindingTimeoutsArgs] = None)
func NewCodeEngineBinding(ctx *Context, name string, args CodeEngineBindingArgs, opts ...ResourceOption) (*CodeEngineBinding, error)
public CodeEngineBinding(string name, CodeEngineBindingArgs args, CustomResourceOptions? opts = null)
public CodeEngineBinding(String name, CodeEngineBindingArgs args)
public CodeEngineBinding(String name, CodeEngineBindingArgs args, CustomResourceOptions options)
type: ibm:CodeEngineBinding
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CodeEngineBindingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CodeEngineBindingArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CodeEngineBindingArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CodeEngineBindingArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CodeEngineBindingArgs
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 codeEngineBindingResource = new Ibm.CodeEngineBinding("codeEngineBindingResource", new()
{
    Component = new Ibm.Inputs.CodeEngineBindingComponentArgs
    {
        Name = "string",
        ResourceType = "string",
    },
    Prefix = "string",
    ProjectId = "string",
    SecretName = "string",
    CodeEngineBindingId = "string",
    Timeouts = new Ibm.Inputs.CodeEngineBindingTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
    },
});
Copy
example, err := ibm.NewCodeEngineBinding(ctx, "codeEngineBindingResource", &ibm.CodeEngineBindingArgs{
	Component: &ibm.CodeEngineBindingComponentArgs{
		Name:         pulumi.String("string"),
		ResourceType: pulumi.String("string"),
	},
	Prefix:              pulumi.String("string"),
	ProjectId:           pulumi.String("string"),
	SecretName:          pulumi.String("string"),
	CodeEngineBindingId: pulumi.String("string"),
	Timeouts: &ibm.CodeEngineBindingTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
	},
})
Copy
var codeEngineBindingResource = new CodeEngineBinding("codeEngineBindingResource", CodeEngineBindingArgs.builder()
    .component(CodeEngineBindingComponentArgs.builder()
        .name("string")
        .resourceType("string")
        .build())
    .prefix("string")
    .projectId("string")
    .secretName("string")
    .codeEngineBindingId("string")
    .timeouts(CodeEngineBindingTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .build())
    .build());
Copy
code_engine_binding_resource = ibm.CodeEngineBinding("codeEngineBindingResource",
    component={
        "name": "string",
        "resource_type": "string",
    },
    prefix="string",
    project_id="string",
    secret_name="string",
    code_engine_binding_id="string",
    timeouts={
        "create": "string",
        "delete": "string",
    })
Copy
const codeEngineBindingResource = new ibm.CodeEngineBinding("codeEngineBindingResource", {
    component: {
        name: "string",
        resourceType: "string",
    },
    prefix: "string",
    projectId: "string",
    secretName: "string",
    codeEngineBindingId: "string",
    timeouts: {
        create: "string",
        "delete": "string",
    },
});
Copy
type: ibm:CodeEngineBinding
properties:
    codeEngineBindingId: string
    component:
        name: string
        resourceType: string
    prefix: string
    projectId: string
    secretName: string
    timeouts:
        create: string
        delete: string
Copy

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

Component This property is required. CodeEngineBindingComponent
A reference to another component. Nested schema for component:
Prefix This property is required. string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
ProjectId This property is required. string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
SecretName This property is required. string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
CodeEngineBindingId string
The unique identifier of the code_engine_binding.
Timeouts CodeEngineBindingTimeouts
Component This property is required. CodeEngineBindingComponentArgs
A reference to another component. Nested schema for component:
Prefix This property is required. string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
ProjectId This property is required. string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
SecretName This property is required. string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
CodeEngineBindingId string
The unique identifier of the code_engine_binding.
Timeouts CodeEngineBindingTimeoutsArgs
component This property is required. CodeEngineBindingComponent
A reference to another component. Nested schema for component:
prefix This property is required. String
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId This property is required. String
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
secretName This property is required. String
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
codeEngineBindingId String
The unique identifier of the code_engine_binding.
timeouts CodeEngineBindingTimeouts
component This property is required. CodeEngineBindingComponent
A reference to another component. Nested schema for component:
prefix This property is required. string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId This property is required. string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
secretName This property is required. string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
codeEngineBindingId string
The unique identifier of the code_engine_binding.
timeouts CodeEngineBindingTimeouts
component This property is required. CodeEngineBindingComponentArgs
A reference to another component. Nested schema for component:
prefix This property is required. str
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
project_id This property is required. str
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
secret_name This property is required. str
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
code_engine_binding_id str
The unique identifier of the code_engine_binding.
timeouts CodeEngineBindingTimeoutsArgs
component This property is required. Property Map
A reference to another component. Nested schema for component:
prefix This property is required. String
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId This property is required. String
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
secretName This property is required. String
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
codeEngineBindingId String
The unique identifier of the code_engine_binding.
timeouts Property Map

Outputs

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

BindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
Href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
Id string
The provider-assigned unique ID for this managed resource.
ResourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
Status string
(String) The current status of the binding.
BindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
Href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
Id string
The provider-assigned unique ID for this managed resource.
ResourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
Status string
(String) The current status of the binding.
bindingId String
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
href String
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
id String
The provider-assigned unique ID for this managed resource.
resourceType String
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
status String
(String) The current status of the binding.
bindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
id string
The provider-assigned unique ID for this managed resource.
resourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
status string
(String) The current status of the binding.
binding_id str
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
href str
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
id str
The provider-assigned unique ID for this managed resource.
resource_type str
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
status str
(String) The current status of the binding.
bindingId String
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
href String
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
id String
The provider-assigned unique ID for this managed resource.
resourceType String
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
status String
(String) The current status of the binding.

Look up Existing CodeEngineBinding Resource

Get an existing CodeEngineBinding 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?: CodeEngineBindingState, opts?: CustomResourceOptions): CodeEngineBinding
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        binding_id: Optional[str] = None,
        code_engine_binding_id: Optional[str] = None,
        component: Optional[CodeEngineBindingComponentArgs] = None,
        href: Optional[str] = None,
        prefix: Optional[str] = None,
        project_id: Optional[str] = None,
        resource_type: Optional[str] = None,
        secret_name: Optional[str] = None,
        status: Optional[str] = None,
        timeouts: Optional[CodeEngineBindingTimeoutsArgs] = None) -> CodeEngineBinding
func GetCodeEngineBinding(ctx *Context, name string, id IDInput, state *CodeEngineBindingState, opts ...ResourceOption) (*CodeEngineBinding, error)
public static CodeEngineBinding Get(string name, Input<string> id, CodeEngineBindingState? state, CustomResourceOptions? opts = null)
public static CodeEngineBinding get(String name, Output<String> id, CodeEngineBindingState state, CustomResourceOptions options)
resources:  _:    type: ibm:CodeEngineBinding    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
BindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
CodeEngineBindingId string
The unique identifier of the code_engine_binding.
Component CodeEngineBindingComponent
A reference to another component. Nested schema for component:
Href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
Prefix string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
ProjectId string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
ResourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
SecretName string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
Status string
(String) The current status of the binding.
Timeouts CodeEngineBindingTimeouts
BindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
CodeEngineBindingId string
The unique identifier of the code_engine_binding.
Component CodeEngineBindingComponentArgs
A reference to another component. Nested schema for component:
Href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
Prefix string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
ProjectId string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
ResourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
SecretName string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
Status string
(String) The current status of the binding.
Timeouts CodeEngineBindingTimeoutsArgs
bindingId String
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
codeEngineBindingId String
The unique identifier of the code_engine_binding.
component CodeEngineBindingComponent
A reference to another component. Nested schema for component:
href String
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
prefix String
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId String
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
resourceType String
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
secretName String
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
status String
(String) The current status of the binding.
timeouts CodeEngineBindingTimeouts
bindingId string
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
codeEngineBindingId string
The unique identifier of the code_engine_binding.
component CodeEngineBindingComponent
A reference to another component. Nested schema for component:
href string
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
prefix string
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId string
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
resourceType string
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
secretName string
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
status string
(String) The current status of the binding.
timeouts CodeEngineBindingTimeouts
binding_id str
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
code_engine_binding_id str
The unique identifier of the code_engine_binding.
component CodeEngineBindingComponentArgs
A reference to another component. Nested schema for component:
href str
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
prefix str
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
project_id str
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
resource_type str
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
secret_name str
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
status str
(String) The current status of the binding.
timeouts CodeEngineBindingTimeoutsArgs
bindingId String
(String) The ID of the binding.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /.+/.
codeEngineBindingId String
The unique identifier of the code_engine_binding.
component Property Map
A reference to another component. Nested schema for component:
href String
(String) When you provision a new binding, a URL is created identifying the location of the instance.

  • Constraints: The maximum length is 2048 characters. The minimum length is 0 characters. The value must match regular expression /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
prefix String
The value that is set as a prefix in the component that is bound.

  • Constraints: The maximum length is 31 characters. The minimum length is 0 characters. The value must match regular expression /^A-Z*$/.
projectId String
The ID of the project.

  • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
resourceType String
(String) The type of the binding.

  • Constraints: Allowable values are: binding_v2.
secretName String
The service access secret that is bound to a component.

  • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?(\\.a-z0-9?)*$/.
status String
(String) The current status of the binding.
timeouts Property Map

Supporting Types

CodeEngineBindingComponent
, CodeEngineBindingComponentArgs

Name This property is required. string
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
ResourceType This property is required. string
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.
Name This property is required. string
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
ResourceType This property is required. string
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.
name This property is required. String
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
resourceType This property is required. String
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.
name This property is required. string
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
resourceType This property is required. string
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.
name This property is required. str
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
resource_type This property is required. str
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.
name This property is required. String
The name of the referenced component.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^a-z0-9?$/.
resourceType This property is required. String
The type of the referenced resource.

  • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /.+/.

CodeEngineBindingTimeouts
, CodeEngineBindingTimeoutsArgs

Create string
Delete string
Create string
Delete string
create String
delete String
create string
delete string
create str
delete str
create String
delete String

Import

You can import the ibm_code_engine_binding resource by using id.

The id property can be formed from project_id, and binding_id in the following format:

<project_id>/<binding_id>

  • project_id: A string in the format 15314cc3-85b4-4338-903f-c28cdee6d005. The ID of the project.

  • binding_id: A string in the format a172ced-b5f21bc-71ba50c-1638604. The ID of the binding.

Syntax

```sh
$ pulumi import ibm:index/codeEngineBinding:CodeEngineBinding code_engine_binding <project_id>/<binding_id>
```

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
ibm ibm-cloud/terraform-provider-ibm
License
Notes
This Pulumi package is based on the ibm Terraform Provider.