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

ibm.CodeEngineSecret

Explore with Pulumi AI

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

    Create, update, and delete code_engine_secrets with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const codeEngineSecretInstance = new ibm.CodeEngineSecret("codeEngineSecretInstance", {
        data: {
            key1: "value1",
            key2: "value2",
        },
        format: "generic",
        projectId: "15314cc3-85b4-4338-903f-c28cdee6d005",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    code_engine_secret_instance = ibm.CodeEngineSecret("codeEngineSecretInstance",
        data={
            "key1": "value1",
            "key2": "value2",
        },
        format="generic",
        project_id="15314cc3-85b4-4338-903f-c28cdee6d005")
    
    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.NewCodeEngineSecret(ctx, "codeEngineSecretInstance", &ibm.CodeEngineSecretArgs{
    			Data: pulumi.StringMap{
    				"key1": pulumi.String("value1"),
    				"key2": pulumi.String("value2"),
    			},
    			Format:    pulumi.String("generic"),
    			ProjectId: pulumi.String("15314cc3-85b4-4338-903f-c28cdee6d005"),
    		})
    		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 codeEngineSecretInstance = new Ibm.CodeEngineSecret("codeEngineSecretInstance", new()
        {
            Data = 
            {
                { "key1", "value1" },
                { "key2", "value2" },
            },
            Format = "generic",
            ProjectId = "15314cc3-85b4-4338-903f-c28cdee6d005",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.CodeEngineSecret;
    import com.pulumi.ibm.CodeEngineSecretArgs;
    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 codeEngineSecretInstance = new CodeEngineSecret("codeEngineSecretInstance", CodeEngineSecretArgs.builder()
                .data(Map.ofEntries(
                    Map.entry("key1", "value1"),
                    Map.entry("key2", "value2")
                ))
                .format("generic")
                .projectId("15314cc3-85b4-4338-903f-c28cdee6d005")
                .build());
    
        }
    }
    
    resources:
      codeEngineSecretInstance:
        type: ibm:CodeEngineSecret
        properties:
          data:
            key1: value1
            key2: value2
          format: generic
          projectId: 15314cc3-85b4-4338-903f-c28cdee6d005
    

    Create CodeEngineSecret Resource

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

    Constructor syntax

    new CodeEngineSecret(name: string, args: CodeEngineSecretArgs, opts?: CustomResourceOptions);
    @overload
    def CodeEngineSecret(resource_name: str,
                         args: CodeEngineSecretArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def CodeEngineSecret(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         format: Optional[str] = None,
                         project_id: Optional[str] = None,
                         code_engine_secret_id: Optional[str] = None,
                         data: Optional[Mapping[str, str]] = None,
                         name: Optional[str] = None,
                         service_access: Optional[CodeEngineSecretServiceAccessArgs] = None,
                         service_operator: Optional[CodeEngineSecretServiceOperatorArgs] = None)
    func NewCodeEngineSecret(ctx *Context, name string, args CodeEngineSecretArgs, opts ...ResourceOption) (*CodeEngineSecret, error)
    public CodeEngineSecret(string name, CodeEngineSecretArgs args, CustomResourceOptions? opts = null)
    public CodeEngineSecret(String name, CodeEngineSecretArgs args)
    public CodeEngineSecret(String name, CodeEngineSecretArgs args, CustomResourceOptions options)
    
    type: ibm:CodeEngineSecret
    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 CodeEngineSecretArgs
    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 CodeEngineSecretArgs
    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 CodeEngineSecretArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CodeEngineSecretArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CodeEngineSecretArgs
    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 codeEngineSecretResource = new Ibm.CodeEngineSecret("codeEngineSecretResource", new()
    {
        Format = "string",
        ProjectId = "string",
        CodeEngineSecretId = "string",
        Data = 
        {
            { "string", "string" },
        },
        Name = "string",
        ServiceAccess = new Ibm.Inputs.CodeEngineSecretServiceAccessArgs
        {
            ResourceKey = new Ibm.Inputs.CodeEngineSecretServiceAccessResourceKeyArgs
            {
                Id = "string",
                Name = "string",
            },
            ServiceInstance = new Ibm.Inputs.CodeEngineSecretServiceAccessServiceInstanceArgs
            {
                Id = "string",
                Type = "string",
            },
            Role = new Ibm.Inputs.CodeEngineSecretServiceAccessRoleArgs
            {
                Crn = "string",
                Name = "string",
            },
            Serviceid = new Ibm.Inputs.CodeEngineSecretServiceAccessServiceidArgs
            {
                Crn = "string",
                Id = "string",
            },
        },
        ServiceOperator = new Ibm.Inputs.CodeEngineSecretServiceOperatorArgs
        {
            ResourceGroupIds = new[]
            {
                "string",
            },
            Serviceid = new Ibm.Inputs.CodeEngineSecretServiceOperatorServiceidArgs
            {
                Crn = "string",
                Id = "string",
            },
            ApikeyId = "string",
            UserManaged = false,
        },
    });
    
    example, err := ibm.NewCodeEngineSecret(ctx, "codeEngineSecretResource", &ibm.CodeEngineSecretArgs{
    	Format:             pulumi.String("string"),
    	ProjectId:          pulumi.String("string"),
    	CodeEngineSecretId: pulumi.String("string"),
    	Data: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	Name: pulumi.String("string"),
    	ServiceAccess: &ibm.CodeEngineSecretServiceAccessArgs{
    		ResourceKey: &ibm.CodeEngineSecretServiceAccessResourceKeyArgs{
    			Id:   pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    		ServiceInstance: &ibm.CodeEngineSecretServiceAccessServiceInstanceArgs{
    			Id:   pulumi.String("string"),
    			Type: pulumi.String("string"),
    		},
    		Role: &ibm.CodeEngineSecretServiceAccessRoleArgs{
    			Crn:  pulumi.String("string"),
    			Name: pulumi.String("string"),
    		},
    		Serviceid: &ibm.CodeEngineSecretServiceAccessServiceidArgs{
    			Crn: pulumi.String("string"),
    			Id:  pulumi.String("string"),
    		},
    	},
    	ServiceOperator: &ibm.CodeEngineSecretServiceOperatorArgs{
    		ResourceGroupIds: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		Serviceid: &ibm.CodeEngineSecretServiceOperatorServiceidArgs{
    			Crn: pulumi.String("string"),
    			Id:  pulumi.String("string"),
    		},
    		ApikeyId:    pulumi.String("string"),
    		UserManaged: pulumi.Bool(false),
    	},
    })
    
    var codeEngineSecretResource = new CodeEngineSecret("codeEngineSecretResource", CodeEngineSecretArgs.builder()
        .format("string")
        .projectId("string")
        .codeEngineSecretId("string")
        .data(Map.of("string", "string"))
        .name("string")
        .serviceAccess(CodeEngineSecretServiceAccessArgs.builder()
            .resourceKey(CodeEngineSecretServiceAccessResourceKeyArgs.builder()
                .id("string")
                .name("string")
                .build())
            .serviceInstance(CodeEngineSecretServiceAccessServiceInstanceArgs.builder()
                .id("string")
                .type("string")
                .build())
            .role(CodeEngineSecretServiceAccessRoleArgs.builder()
                .crn("string")
                .name("string")
                .build())
            .serviceid(CodeEngineSecretServiceAccessServiceidArgs.builder()
                .crn("string")
                .id("string")
                .build())
            .build())
        .serviceOperator(CodeEngineSecretServiceOperatorArgs.builder()
            .resourceGroupIds("string")
            .serviceid(CodeEngineSecretServiceOperatorServiceidArgs.builder()
                .crn("string")
                .id("string")
                .build())
            .apikeyId("string")
            .userManaged(false)
            .build())
        .build());
    
    code_engine_secret_resource = ibm.CodeEngineSecret("codeEngineSecretResource",
        format="string",
        project_id="string",
        code_engine_secret_id="string",
        data={
            "string": "string",
        },
        name="string",
        service_access={
            "resource_key": {
                "id": "string",
                "name": "string",
            },
            "service_instance": {
                "id": "string",
                "type": "string",
            },
            "role": {
                "crn": "string",
                "name": "string",
            },
            "serviceid": {
                "crn": "string",
                "id": "string",
            },
        },
        service_operator={
            "resource_group_ids": ["string"],
            "serviceid": {
                "crn": "string",
                "id": "string",
            },
            "apikey_id": "string",
            "user_managed": False,
        })
    
    const codeEngineSecretResource = new ibm.CodeEngineSecret("codeEngineSecretResource", {
        format: "string",
        projectId: "string",
        codeEngineSecretId: "string",
        data: {
            string: "string",
        },
        name: "string",
        serviceAccess: {
            resourceKey: {
                id: "string",
                name: "string",
            },
            serviceInstance: {
                id: "string",
                type: "string",
            },
            role: {
                crn: "string",
                name: "string",
            },
            serviceid: {
                crn: "string",
                id: "string",
            },
        },
        serviceOperator: {
            resourceGroupIds: ["string"],
            serviceid: {
                crn: "string",
                id: "string",
            },
            apikeyId: "string",
            userManaged: false,
        },
    });
    
    type: ibm:CodeEngineSecret
    properties:
        codeEngineSecretId: string
        data:
            string: string
        format: string
        name: string
        projectId: string
        serviceAccess:
            resourceKey:
                id: string
                name: string
            role:
                crn: string
                name: string
            serviceInstance:
                id: string
                type: string
            serviceid:
                crn: string
                id: string
        serviceOperator:
            apikeyId: string
            resourceGroupIds:
                - string
            serviceid:
                crn: string
                id: string
            userManaged: false
    

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

    Format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    CodeEngineSecretId string
    The unique identifier of the code_engine_secret.
    Data Dictionary<string, string>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    Name string
    The name of the secret.

    • 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?)*$/.
    ServiceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    ServiceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    Format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    CodeEngineSecretId string
    The unique identifier of the code_engine_secret.
    Data map[string]string
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    Name string
    The name of the secret.

    • 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?)*$/.
    ServiceAccess CodeEngineSecretServiceAccessArgs
    Properties for Service Access Secrets. Nested schema for service_access:
    ServiceOperator CodeEngineSecretServiceOperatorArgs
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    format String
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    codeEngineSecretId String
    The unique identifier of the code_engine_secret.
    data Map<String,String>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    name String
    The name of the secret.

    • 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?)*$/.
    serviceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    codeEngineSecretId string
    The unique identifier of the code_engine_secret.
    data {[key: string]: string}
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    name string
    The name of the secret.

    • 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?)*$/.
    serviceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    format str
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    code_engine_secret_id str
    The unique identifier of the code_engine_secret.
    data Mapping[str, str]
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    name str
    The name of the secret.

    • 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?)*$/.
    service_access CodeEngineSecretServiceAccessArgs
    Properties for Service Access Secrets. Nested schema for service_access:
    service_operator CodeEngineSecretServiceOperatorArgs
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    format String
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    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}$/.
    codeEngineSecretId String
    The unique identifier of the code_engine_secret.
    data Map<String>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    name String
    The name of the secret.

    • 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?)*$/.
    serviceAccess Property Map
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator Property Map
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:

    Outputs

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

    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_secret.
    Href string
    (String) When you provision a new secret, 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.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the secret.
    SecretId string
    (String) The identifier of the resource.

    • 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}$/.
    CreatedAt string
    (String) The timestamp when the resource was created.
    EntityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_secret.
    Href string
    (String) When you provision a new secret, 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.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the secret.
    SecretId string
    (String) The identifier of the resource.

    • 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}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_secret.
    href String
    (String) When you provision a new secret, 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.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the secret.
    secretId String
    (String) The identifier of the resource.

    • 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}$/.
    createdAt string
    (String) The timestamp when the resource was created.
    entityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_secret.
    href string
    (String) When you provision a new secret, 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.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the secret.
    secretId string
    (String) The identifier of the resource.

    • 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}$/.
    created_at str
    (String) The timestamp when the resource was created.
    entity_tag str
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_secret.
    href str
    (String) When you provision a new secret, 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.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the secret.
    secret_id str
    (String) The identifier of the resource.

    • 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}$/.
    createdAt String
    (String) The timestamp when the resource was created.
    entityTag String
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_secret.
    href String
    (String) When you provision a new secret, 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.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the secret.
    secretId String
    (String) The identifier of the resource.

    • 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}$/.

    Look up Existing CodeEngineSecret Resource

    Get an existing CodeEngineSecret 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?: CodeEngineSecretState, opts?: CustomResourceOptions): CodeEngineSecret
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            code_engine_secret_id: Optional[str] = None,
            created_at: Optional[str] = None,
            data: Optional[Mapping[str, str]] = None,
            entity_tag: Optional[str] = None,
            etag: Optional[str] = None,
            format: Optional[str] = None,
            href: Optional[str] = None,
            name: Optional[str] = None,
            project_id: Optional[str] = None,
            region: Optional[str] = None,
            resource_type: Optional[str] = None,
            secret_id: Optional[str] = None,
            service_access: Optional[CodeEngineSecretServiceAccessArgs] = None,
            service_operator: Optional[CodeEngineSecretServiceOperatorArgs] = None) -> CodeEngineSecret
    func GetCodeEngineSecret(ctx *Context, name string, id IDInput, state *CodeEngineSecretState, opts ...ResourceOption) (*CodeEngineSecret, error)
    public static CodeEngineSecret Get(string name, Input<string> id, CodeEngineSecretState? state, CustomResourceOptions? opts = null)
    public static CodeEngineSecret get(String name, Output<String> id, CodeEngineSecretState state, CustomResourceOptions options)
    resources:  _:    type: ibm:CodeEngineSecret    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CodeEngineSecretId string
    The unique identifier of the code_engine_secret.
    CreatedAt string
    (String) The timestamp when the resource was created.
    Data Dictionary<string, string>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    EntityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_secret.
    Format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    Href string
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Name string
    The name of the secret.

    • 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?)*$/.
    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}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the secret.
    SecretId string
    (String) The identifier of the resource.

    • 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}$/.
    ServiceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    ServiceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    CodeEngineSecretId string
    The unique identifier of the code_engine_secret.
    CreatedAt string
    (String) The timestamp when the resource was created.
    Data map[string]string
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    EntityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    Etag string
    ETag identifier for code_engine_secret.
    Format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    Href string
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    Name string
    The name of the secret.

    • 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?)*$/.
    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}$/.
    Region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    ResourceType string
    (String) The type of the secret.
    SecretId string
    (String) The identifier of the resource.

    • 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}$/.
    ServiceAccess CodeEngineSecretServiceAccessArgs
    Properties for Service Access Secrets. Nested schema for service_access:
    ServiceOperator CodeEngineSecretServiceOperatorArgs
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    codeEngineSecretId String
    The unique identifier of the code_engine_secret.
    createdAt String
    (String) The timestamp when the resource was created.
    data Map<String,String>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    entityTag String
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_secret.
    format String
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    href String
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name String
    The name of the secret.

    • 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?)*$/.
    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}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the secret.
    secretId String
    (String) The identifier of the resource.

    • 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}$/.
    serviceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    codeEngineSecretId string
    The unique identifier of the code_engine_secret.
    createdAt string
    (String) The timestamp when the resource was created.
    data {[key: string]: string}
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    entityTag string
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag string
    ETag identifier for code_engine_secret.
    format string
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    href string
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name string
    The name of the secret.

    • 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?)*$/.
    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}$/.
    region string
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType string
    (String) The type of the secret.
    secretId string
    (String) The identifier of the resource.

    • 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}$/.
    serviceAccess CodeEngineSecretServiceAccess
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator CodeEngineSecretServiceOperator
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    code_engine_secret_id str
    The unique identifier of the code_engine_secret.
    created_at str
    (String) The timestamp when the resource was created.
    data Mapping[str, str]
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    entity_tag str
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag str
    ETag identifier for code_engine_secret.
    format str
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    href str
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name str
    The name of the secret.

    • 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?)*$/.
    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}$/.
    region str
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resource_type str
    (String) The type of the secret.
    secret_id str
    (String) The identifier of the resource.

    • 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}$/.
    service_access CodeEngineSecretServiceAccessArgs
    Properties for Service Access Secrets. Nested schema for service_access:
    service_operator CodeEngineSecretServiceOperatorArgs
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:
    codeEngineSecretId String
    The unique identifier of the code_engine_secret.
    createdAt String
    (String) The timestamp when the resource was created.
    data Map<String>
    Data container that allows to specify config parameters and their values as a key-value map. Each key field must consist of alphanumeric characters, -, _ or . and must not exceed a max length of 253 characters. Each value field can consists of any character and must not exceed a max length of 1048576 characters.
    entityTag String
    (String) The version of the secret instance, which is used to achieve optimistic locking.

    • Constraints: The maximum length is 63 characters. The minimum length is 1 character. The value must match regular expression /^[\\*\\-a-z0-9]+$/.
    etag String
    ETag identifier for code_engine_secret.
    format String
    Specify the format of the secret.

    • Constraints: Allowable values are: generic, ssh_auth, basic_auth, tls, service_access, registry, service_operator, other. The value must match regular expression /^(generic|ssh_auth|basic_auth|tls|service_access|registry|service_operator|other)$/.
    href String
    (String) When you provision a new secret, 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 /(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/.
    name String
    The name of the secret.

    • 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?)*$/.
    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}$/.
    region String
    (String) The region of the project the resource is located in. Possible values: 'au-syd', 'br-sao', 'ca-tor', 'eu-de', 'eu-gb', 'jp-osa', 'jp-tok', 'us-east', 'us-south'.
    resourceType String
    (String) The type of the secret.
    secretId String
    (String) The identifier of the resource.

    • 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}$/.
    serviceAccess Property Map
    Properties for Service Access Secrets. Nested schema for service_access:
    serviceOperator Property Map
    Properties for the IBM Cloud Operator Secret. Nested schema for service_operator:

    Supporting Types

    CodeEngineSecretServiceAccess, CodeEngineSecretServiceAccessArgs

    ResourceKey CodeEngineSecretServiceAccessResourceKey
    The service credential associated with the secret. Nested schema for resource_key:
    ServiceInstance CodeEngineSecretServiceAccessServiceInstance
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    Role CodeEngineSecretServiceAccessRole
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    Serviceid CodeEngineSecretServiceAccessServiceid
    A reference to a Service ID. Nested schema for serviceid:
    ResourceKey CodeEngineSecretServiceAccessResourceKey
    The service credential associated with the secret. Nested schema for resource_key:
    ServiceInstance CodeEngineSecretServiceAccessServiceInstance
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    Role CodeEngineSecretServiceAccessRole
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    Serviceid CodeEngineSecretServiceAccessServiceid
    A reference to a Service ID. Nested schema for serviceid:
    resourceKey CodeEngineSecretServiceAccessResourceKey
    The service credential associated with the secret. Nested schema for resource_key:
    serviceInstance CodeEngineSecretServiceAccessServiceInstance
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    role CodeEngineSecretServiceAccessRole
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    serviceid CodeEngineSecretServiceAccessServiceid
    A reference to a Service ID. Nested schema for serviceid:
    resourceKey CodeEngineSecretServiceAccessResourceKey
    The service credential associated with the secret. Nested schema for resource_key:
    serviceInstance CodeEngineSecretServiceAccessServiceInstance
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    role CodeEngineSecretServiceAccessRole
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    serviceid CodeEngineSecretServiceAccessServiceid
    A reference to a Service ID. Nested schema for serviceid:
    resource_key CodeEngineSecretServiceAccessResourceKey
    The service credential associated with the secret. Nested schema for resource_key:
    service_instance CodeEngineSecretServiceAccessServiceInstance
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    role CodeEngineSecretServiceAccessRole
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    serviceid CodeEngineSecretServiceAccessServiceid
    A reference to a Service ID. Nested schema for serviceid:
    resourceKey Property Map
    The service credential associated with the secret. Nested schema for resource_key:
    serviceInstance Property Map
    The IBM Cloud service instance associated with the secret. Nested schema for service_instance:
    role Property Map
    A reference to the Role and Role CRN for service binding. Nested schema for role:
    serviceid Property Map
    A reference to a Service ID. Nested schema for serviceid:

    CodeEngineSecretServiceAccessResourceKey, CodeEngineSecretServiceAccessResourceKeyArgs

    Id string
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    Name string
    Name of the service credential associated with the secret.
    Id string
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    Name string
    Name of the service credential associated with the secret.
    id String
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    name String
    Name of the service credential associated with the secret.
    id string
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    name string
    Name of the service credential associated with the secret.
    id str
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    name str
    Name of the service credential associated with the secret.
    id String
    ID of the service credential associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 0 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    name String
    Name of the service credential associated with the secret.

    CodeEngineSecretServiceAccessRole, CodeEngineSecretServiceAccessRoleArgs

    Crn string
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Name string
    Role of the service credential.

    • Constraints: The default value is Writer.
    Crn string
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Name string
    Role of the service credential.

    • Constraints: The default value is Writer.
    crn String
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    name String
    Role of the service credential.

    • Constraints: The default value is Writer.
    crn string
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    name string
    Role of the service credential.

    • Constraints: The default value is Writer.
    crn str
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    name str
    Role of the service credential.

    • Constraints: The default value is Writer.
    crn String
    CRN of the IAM Role for this service access secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^[A-Z][a-zA-Z() ]*[a-z)]$|^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    name String
    Role of the service credential.

    • Constraints: The default value is Writer.

    CodeEngineSecretServiceAccessServiceInstance, CodeEngineSecretServiceAccessServiceInstanceArgs

    Id string
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    Type string
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    Id string
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    Type string
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    id String
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    type String
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    id string
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    type string
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    id str
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    type str
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.
    id String
    ID of the IBM Cloud service instance associated with the secret.

    • Constraints: The maximum length is 36 characters. The minimum length is 36 characters. The value must match regular expression /^[a-z0-9][\\-a-z0-9]*[a-z0-9]$/.
    type String
    Type of IBM Cloud service associated with the secret.

    • Constraints: The maximum length is 253 characters. The minimum length is 1 character. The value must match regular expression /^.*$/.

    CodeEngineSecretServiceAccessServiceid, CodeEngineSecretServiceAccessServiceidArgs

    Crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn String
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id String
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn str
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id str
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn String
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id String
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.

    CodeEngineSecretServiceOperator, CodeEngineSecretServiceOperatorArgs

    ResourceGroupIds List<string>
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    Serviceid CodeEngineSecretServiceOperatorServiceid
    A reference to a Service ID. Nested schema for serviceid:
    ApikeyId string
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    UserManaged bool
    Specifies whether the operator secret is user managed.
    ResourceGroupIds []string
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    Serviceid CodeEngineSecretServiceOperatorServiceid
    A reference to a Service ID. Nested schema for serviceid:
    ApikeyId string
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    UserManaged bool
    Specifies whether the operator secret is user managed.
    resourceGroupIds List<String>
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    serviceid CodeEngineSecretServiceOperatorServiceid
    A reference to a Service ID. Nested schema for serviceid:
    apikeyId String
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    userManaged Boolean
    Specifies whether the operator secret is user managed.
    resourceGroupIds string[]
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    serviceid CodeEngineSecretServiceOperatorServiceid
    A reference to a Service ID. Nested schema for serviceid:
    apikeyId string
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    userManaged boolean
    Specifies whether the operator secret is user managed.
    resource_group_ids Sequence[str]
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    serviceid CodeEngineSecretServiceOperatorServiceid
    A reference to a Service ID. Nested schema for serviceid:
    apikey_id str
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    user_managed bool
    Specifies whether the operator secret is user managed.
    resourceGroupIds List<String>
    The list of resource groups (by ID) that the operator secret can bind services in.

    • Constraints: The list items must match regular expression /^[a-z0-9]*$/. The maximum length is 100 items. The minimum length is 0 items.
    serviceid Property Map
    A reference to a Service ID. Nested schema for serviceid:
    apikeyId String
    The ID of the apikey associated with the operator secret.

    • Constraints: The maximum length is 43 characters. The minimum length is 43 characters. The value must match regular expression /^ApiKey-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    userManaged Boolean
    Specifies whether the operator secret is user managed.

    CodeEngineSecretServiceOperatorServiceid, CodeEngineSecretServiceOperatorServiceidArgs

    Crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    Crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    Id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn String
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id String
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn string
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id string
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn str
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id str
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.
    crn String
    CRN value of a Service ID.

    • Constraints: The maximum length is 253 characters. The minimum length is 0 characters. The value must match regular expression /^crn\\:v1\\:[a-zA-Z0-9]*\\:(public|dedicated|local)\\:[\\-a-z0-9]*\\:([a-z][\\-a-z0-9_]*[a-z0-9])?\\:((a|o|s)\/[\\-a-z0-9]+)?\\:[\\-a-z0-9\/]*\\:[\\-a-zA-Z0-9]*(\\:[\\-a-zA-Z0-9\/.]*)?$/.
    id String
    The ID of the Service ID.

    • Constraints: The maximum length is 46 characters. The minimum length is 46 characters. The value must match regular expression /^ServiceId-[0-9a-z]{8}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{4}-[0-9a-z]{12}$/.

    Import

    You can import the ibm_code_engine_secret resource by using name.

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

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

    • name: A string in the format my-secret. The name of the secret.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/codeEngineSecret:CodeEngineSecret code_engine_secret <project_id>/<name>
    ```
    
    

    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.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud