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",
});
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")
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
})
}
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",
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args CodeEngineBindingArgs
- 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 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 string
- The unique name of the resource.
- args CodeEngineBindingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CodeEngineBindingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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",
})
const codeEngineBindingResource = new ibm.CodeEngineBinding("codeEngineBindingResource", {
component: {
name: "string",
resourceType: "string",
},
prefix: "string",
projectId: "string",
secretName: "string",
codeEngineBindingId: "string",
timeouts: {
create: "string",
"delete": "string",
},
});
type: ibm:CodeEngineBinding
properties:
codeEngineBindingId: string
component:
name: string
resourceType: string
prefix: string
projectId: string
secretName: string
timeouts:
create: string
delete: string
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
Code
Engine Binding Component - A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- Timeouts
Code
Engine Binding Timeouts
- Component
Code
Engine Binding Component Args - A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- Timeouts
Code
Engine Binding Timeouts Args
- component
Code
Engine Binding Component - A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- secret
Name String - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- code
Engine StringBinding Id - The unique identifier of the code_engine_binding.
- timeouts
Code
Engine Binding Timeouts
- component
Code
Engine Binding Component - A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- timeouts
Code
Engine Binding Timeouts
- component
Code
Engine Binding Component Args - A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project_
id str - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- secret_
name str - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- code_
engine_ strbinding_ id - The unique identifier of the code_engine_binding.
- timeouts
Code
Engine Binding Timeouts Args
- component Property Map
- A reference to another component. Nested schema for component:
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- secret
Name String - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- code
Engine StringBinding Id - 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:
- Binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- Status string
- (String) The current status of the binding.
- Binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- Status string
- (String) The current status of the binding.
- binding
Id String - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Type String - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- status String
- (String) The current status of the binding.
- binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id string
- The provider-assigned unique ID for this managed resource.
- resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- 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 is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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
.
- Constraints: Allowable values are:
- status str
- (String) The current status of the binding.
- binding
Id String - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- resource
Type String - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- 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
- 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.
- Binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- Code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- Component
Code
Engine Binding Component - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- Secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Status string
- (String) The current status of the binding.
- Timeouts
Code
Engine Binding Timeouts
- Binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- Code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- Component
Code
Engine Binding Component Args - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- Project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- Resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- Secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- Status string
- (String) The current status of the binding.
- Timeouts
Code
Engine Binding Timeouts Args
- binding
Id String - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- code
Engine StringBinding Id - The unique identifier of the code_engine_binding.
- component
Code
Engine Binding Component - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- resource
Type String - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- secret
Name String - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- status String
- (String) The current status of the binding.
- timeouts
Code
Engine Binding Timeouts
- binding
Id string - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- code
Engine stringBinding Id - The unique identifier of the code_engine_binding.
- component
Code
Engine Binding Component - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id string - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- resource
Type string - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- secret
Name string - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- status string
- (String) The current status of the binding.
- timeouts
Code
Engine Binding Timeouts
- binding_
id str - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- code_
engine_ strbinding_ id - The unique identifier of the code_engine_binding.
- component
Code
Engine Binding Component Args - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project_
id str - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- resource_
type str - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- secret_
name str - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- status str
- (String) The current status of the binding.
- timeouts
Code
Engine Binding Timeouts Args
- binding
Id String - (String) The ID of the binding.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- code
Engine StringBinding Id - 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 is0
characters. The value must match regular expression/(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/
.
- Constraints: The maximum length is
- 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 is0
characters. The value must match regular expression/^A-Z*$/
.
- Constraints: The maximum length is
- project
Id String - The ID of the project.
- Constraints: The maximum length is
36
characters. The minimum length is36
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}$/
.
- Constraints: The maximum length is
- resource
Type String - (String) The type of the binding.
- Constraints: Allowable values are:
binding_v2
.
- Constraints: Allowable values are:
- secret
Name String - The service access secret that is bound to a component.
- Constraints: The maximum length is
253
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?(\\.a-z0-9?)*$/
.
- Constraints: The maximum length is
- status String
- (String) The current status of the binding.
- timeouts Property Map
Supporting Types
CodeEngineBindingComponent, CodeEngineBindingComponentArgs
- Name string
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Resource
Type string - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- Name string
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- Resource
Type string - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- name String
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- resource
Type String - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- name string
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- resource
Type string - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- name str
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- resource_
type str - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
- name String
- The name of the referenced component.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/^a-z0-9?$/
.
- Constraints: The maximum length is
- resource
Type String - The type of the referenced resource.
- Constraints: The maximum length is
63
characters. The minimum length is1
character. The value must match regular expression/.+/
.
- Constraints: The maximum length is
CodeEngineBindingTimeouts, CodeEngineBindingTimeoutsArgs
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 format15314cc3-85b4-4338-903f-c28cdee6d005
. The ID of the project.binding_id
: A string in the formata172ced-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.