ibm.SmCustomCredentialsConfiguration
Explore with Pulumi AI
A resource for a custom credentials secret configuration. This allows custom credentials secret configuration to be created, updated and deleted. For more information, see the docs.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const smCustomCredentialsConfigurationInstance = new ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationInstance", {
instanceId: ibm_resource_instance.sm_instance.guid,
region: "us-south",
apiKeyRef: ibm_sm_iam_credentials_secret.my_secret_for_custom_credentials.secret_id,
codeEngine: {
projectId: ibm_code_engine_project.my_code_engine_project.project_id,
jobName: "my_code_engine_job",
region: "us-south",
},
taskTimeout: "10m",
});
import pulumi
import pulumi_ibm as ibm
sm_custom_credentials_configuration_instance = ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationInstance",
instance_id=ibm_resource_instance["sm_instance"]["guid"],
region="us-south",
api_key_ref=ibm_sm_iam_credentials_secret["my_secret_for_custom_credentials"]["secret_id"],
code_engine={
"project_id": ibm_code_engine_project["my_code_engine_project"]["project_id"],
"job_name": "my_code_engine_job",
"region": "us-south",
},
task_timeout="10m")
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.NewSmCustomCredentialsConfiguration(ctx, "smCustomCredentialsConfigurationInstance", &ibm.SmCustomCredentialsConfigurationArgs{
InstanceId: pulumi.Any(ibm_resource_instance.Sm_instance.Guid),
Region: pulumi.String("us-south"),
ApiKeyRef: pulumi.Any(ibm_sm_iam_credentials_secret.My_secret_for_custom_credentials.Secret_id),
CodeEngine: &ibm.SmCustomCredentialsConfigurationCodeEngineArgs{
ProjectId: pulumi.Any(ibm_code_engine_project.My_code_engine_project.Project_id),
JobName: pulumi.String("my_code_engine_job"),
Region: pulumi.String("us-south"),
},
TaskTimeout: pulumi.String("10m"),
})
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 smCustomCredentialsConfigurationInstance = new Ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationInstance", new()
{
InstanceId = ibm_resource_instance.Sm_instance.Guid,
Region = "us-south",
ApiKeyRef = ibm_sm_iam_credentials_secret.My_secret_for_custom_credentials.Secret_id,
CodeEngine = new Ibm.Inputs.SmCustomCredentialsConfigurationCodeEngineArgs
{
ProjectId = ibm_code_engine_project.My_code_engine_project.Project_id,
JobName = "my_code_engine_job",
Region = "us-south",
},
TaskTimeout = "10m",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.SmCustomCredentialsConfiguration;
import com.pulumi.ibm.SmCustomCredentialsConfigurationArgs;
import com.pulumi.ibm.inputs.SmCustomCredentialsConfigurationCodeEngineArgs;
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 smCustomCredentialsConfigurationInstance = new SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationInstance", SmCustomCredentialsConfigurationArgs.builder()
.instanceId(ibm_resource_instance.sm_instance().guid())
.region("us-south")
.apiKeyRef(ibm_sm_iam_credentials_secret.my_secret_for_custom_credentials().secret_id())
.codeEngine(SmCustomCredentialsConfigurationCodeEngineArgs.builder()
.projectId(ibm_code_engine_project.my_code_engine_project().project_id())
.jobName("my_code_engine_job")
.region("us-south")
.build())
.taskTimeout("10m")
.build());
}
}
resources:
smCustomCredentialsConfigurationInstance:
type: ibm:SmCustomCredentialsConfiguration
properties:
instanceId: ${ibm_resource_instance.sm_instance.guid}
region: us-south
apiKeyRef: ${ibm_sm_iam_credentials_secret.my_secret_for_custom_credentials.secret_id}
codeEngine:
projectId: ${ibm_code_engine_project.my_code_engine_project.project_id}
jobName: my_code_engine_job
region: us-south
taskTimeout: 10m
Provider Configuration
The IBM Cloud provider offers a flexible means of providing credentials for authentication. The following methods are supported, in this order, and explained below:
- Static credentials
- Environment variables
To find which credentials are required for this resource, see the service table here.
Static credentials
You can provide your static credentials by adding the ibmcloud_api_key
, iaas_classic_username
, and iaas_classic_api_key
arguments in the IBM Cloud provider block.
Usage:
provider "ibm" {
ibmcloud_api_key = ""
iaas_classic_username = ""
iaas_classic_api_key = ""
}
Environment variables
You can provide your credentials by exporting the IC_API_KEY
, IAAS_CLASSIC_USERNAME
, and IAAS_CLASSIC_API_KEY
environment variables, representing your IBM Cloud platform API key, IBM Cloud Classic Infrastructure (SoftLayer) user name, and IBM Cloud infrastructure API key, respectively.
provider "ibm" {}
Usage:
export IC_API_KEY="ibmcloud_api_key"
export IAAS_CLASSIC_USERNAME="iaas_classic_username"
export IAAS_CLASSIC_API_KEY="iaas_classic_api_key"
pulumi preview
Note:
- Create or find your
ibmcloud_api_key
andiaas_classic_api_key
here.
- Select
My IBM Cloud API Keys
option from view dropdown foribmcloud_api_key
- Select
Classic Infrastructure API Keys
option from view dropdown foriaas_classic_api_key
- For iaas_classic_username
- Go to Users
- Click on user.
- Find user name in the
VPN password
section underUser Details
tab
For more informaton, see here.
Create SmCustomCredentialsConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SmCustomCredentialsConfiguration(name: string, args: SmCustomCredentialsConfigurationArgs, opts?: CustomResourceOptions);
@overload
def SmCustomCredentialsConfiguration(resource_name: str,
args: SmCustomCredentialsConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SmCustomCredentialsConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
code_engine: Optional[SmCustomCredentialsConfigurationCodeEngineArgs] = None,
instance_id: Optional[str] = None,
api_key_ref: Optional[str] = None,
endpoint_type: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
sm_custom_credentials_configuration_id: Optional[str] = None,
task_timeout: Optional[str] = None)
func NewSmCustomCredentialsConfiguration(ctx *Context, name string, args SmCustomCredentialsConfigurationArgs, opts ...ResourceOption) (*SmCustomCredentialsConfiguration, error)
public SmCustomCredentialsConfiguration(string name, SmCustomCredentialsConfigurationArgs args, CustomResourceOptions? opts = null)
public SmCustomCredentialsConfiguration(String name, SmCustomCredentialsConfigurationArgs args)
public SmCustomCredentialsConfiguration(String name, SmCustomCredentialsConfigurationArgs args, CustomResourceOptions options)
type: ibm:SmCustomCredentialsConfiguration
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 SmCustomCredentialsConfigurationArgs
- 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 SmCustomCredentialsConfigurationArgs
- 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 SmCustomCredentialsConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SmCustomCredentialsConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SmCustomCredentialsConfigurationArgs
- 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 smCustomCredentialsConfigurationResource = new Ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationResource", new()
{
CodeEngine = new Ibm.Inputs.SmCustomCredentialsConfigurationCodeEngineArgs
{
JobName = "string",
ProjectId = "string",
Region = "string",
},
InstanceId = "string",
ApiKeyRef = "string",
EndpointType = "string",
Name = "string",
Region = "string",
SmCustomCredentialsConfigurationId = "string",
TaskTimeout = "string",
});
example, err := ibm.NewSmCustomCredentialsConfiguration(ctx, "smCustomCredentialsConfigurationResource", &ibm.SmCustomCredentialsConfigurationArgs{
CodeEngine: &ibm.SmCustomCredentialsConfigurationCodeEngineArgs{
JobName: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Region: pulumi.String("string"),
},
InstanceId: pulumi.String("string"),
ApiKeyRef: pulumi.String("string"),
EndpointType: pulumi.String("string"),
Name: pulumi.String("string"),
Region: pulumi.String("string"),
SmCustomCredentialsConfigurationId: pulumi.String("string"),
TaskTimeout: pulumi.String("string"),
})
var smCustomCredentialsConfigurationResource = new SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationResource", SmCustomCredentialsConfigurationArgs.builder()
.codeEngine(SmCustomCredentialsConfigurationCodeEngineArgs.builder()
.jobName("string")
.projectId("string")
.region("string")
.build())
.instanceId("string")
.apiKeyRef("string")
.endpointType("string")
.name("string")
.region("string")
.smCustomCredentialsConfigurationId("string")
.taskTimeout("string")
.build());
sm_custom_credentials_configuration_resource = ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationResource",
code_engine={
"job_name": "string",
"project_id": "string",
"region": "string",
},
instance_id="string",
api_key_ref="string",
endpoint_type="string",
name="string",
region="string",
sm_custom_credentials_configuration_id="string",
task_timeout="string")
const smCustomCredentialsConfigurationResource = new ibm.SmCustomCredentialsConfiguration("smCustomCredentialsConfigurationResource", {
codeEngine: {
jobName: "string",
projectId: "string",
region: "string",
},
instanceId: "string",
apiKeyRef: "string",
endpointType: "string",
name: "string",
region: "string",
smCustomCredentialsConfigurationId: "string",
taskTimeout: "string",
});
type: ibm:SmCustomCredentialsConfiguration
properties:
apiKeyRef: string
codeEngine:
jobName: string
projectId: string
region: string
endpointType: string
instanceId: string
name: string
region: string
smCustomCredentialsConfigurationId: string
taskTimeout: string
SmCustomCredentialsConfiguration 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 SmCustomCredentialsConfiguration resource accepts the following input properties:
- Code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- Task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
- Code
Engine SmCustom Credentials Configuration Code Engine Args - The parameters required to configure Code Engine. Nested scheme for code_engine:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- Task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
- code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- instance
Id String - The GUID of the Secrets Manager instance.
- api
Key StringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- name String
- A human-readable unique name to assign to your custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- sm
Custom StringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout String - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
- code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- instance
Id string - The GUID of the Secrets Manager instance.
- api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- name string
- A human-readable unique name to assign to your custom credentials configuration.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
- code_
engine SmCustom Credentials Configuration Code Engine Args - The parameters required to configure Code Engine. Nested scheme for code_engine:
- instance_
id str - The GUID of the Secrets Manager instance.
- api_
key_ strref - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- endpoint_
type str - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- name str
- A human-readable unique name to assign to your custom credentials configuration.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- sm_
custom_ strcredentials_ configuration_ id - The unique identifier of this resource.
- task_
timeout str - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
- code
Engine Property Map - The parameters required to configure Code Engine. Nested scheme for code_engine:
- instance
Id String - The GUID of the Secrets Manager instance.
- api
Key StringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- name String
- A human-readable unique name to assign to your custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- sm
Custom StringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout String - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours).
Outputs
All input properties are implicitly available as output properties. Additionally, the SmCustomCredentialsConfiguration resource produces the following output properties:
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Schemas
List<Sm
Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Id string
- The provider-assigned unique ID for this managed resource.
- Schemas
[]Sm
Custom Credentials Configuration Schema - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- schemas
List<Sm
Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id string
- The provider-assigned unique ID for this managed resource.
- schemas
Sm
Custom Credentials Configuration Schema[] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- code_
engine_ strkey_ ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created_
at str - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created_
by str - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id str
- The provider-assigned unique ID for this managed resource.
- schemas
Sequence[Sm
Custom Credentials Configuration Schema] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- updated_
at str - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- id String
- The provider-assigned unique ID for this managed resource.
- schemas List<Property Map>
- (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
Look up Existing SmCustomCredentialsConfiguration Resource
Get an existing SmCustomCredentialsConfiguration 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?: SmCustomCredentialsConfigurationState, opts?: CustomResourceOptions): SmCustomCredentialsConfiguration
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
api_key_ref: Optional[str] = None,
code_engine: Optional[SmCustomCredentialsConfigurationCodeEngineArgs] = None,
code_engine_key_ref: Optional[str] = None,
created_at: Optional[str] = None,
created_by: Optional[str] = None,
endpoint_type: Optional[str] = None,
instance_id: Optional[str] = None,
name: Optional[str] = None,
region: Optional[str] = None,
schemas: Optional[Sequence[SmCustomCredentialsConfigurationSchemaArgs]] = None,
sm_custom_credentials_configuration_id: Optional[str] = None,
task_timeout: Optional[str] = None,
updated_at: Optional[str] = None) -> SmCustomCredentialsConfiguration
func GetSmCustomCredentialsConfiguration(ctx *Context, name string, id IDInput, state *SmCustomCredentialsConfigurationState, opts ...ResourceOption) (*SmCustomCredentialsConfiguration, error)
public static SmCustomCredentialsConfiguration Get(string name, Input<string> id, SmCustomCredentialsConfigurationState? state, CustomResourceOptions? opts = null)
public static SmCustomCredentialsConfiguration get(String name, Output<String> id, SmCustomCredentialsConfigurationState state, CustomResourceOptions options)
resources: _: type: ibm:SmCustomCredentialsConfiguration 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.
- Api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Schemas
List<Sm
Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- Task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- Api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- Code
Engine SmCustom Credentials Configuration Code Engine Args - The parameters required to configure Code Engine. Nested scheme for code_engine:
- Code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- Created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - Created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- Endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- Instance
Id string - The GUID of the Secrets Manager instance.
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- Region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- Schemas
[]Sm
Custom Credentials Configuration Schema Args - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- Sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- Task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - Updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- api
Key StringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- instance
Id String - The GUID of the Secrets Manager instance.
- name String
- A human-readable unique name to assign to your custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- schemas
List<Sm
Custom Credentials Configuration Schema> - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- sm
Custom StringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout String - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- api
Key stringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine SmCustom Credentials Configuration Code Engine - The parameters required to configure Code Engine. Nested scheme for code_engine:
- code
Engine stringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At string - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By string - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- endpoint
Type string - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- instance
Id string - The GUID of the Secrets Manager instance.
- name string
- A human-readable unique name to assign to your custom credentials configuration.
- region string
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- schemas
Sm
Custom Credentials Configuration Schema[] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- sm
Custom stringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout string - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At string - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- api_
key_ strref - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code_
engine SmCustom Credentials Configuration Code Engine Args - The parameters required to configure Code Engine. Nested scheme for code_engine:
- code_
engine_ strkey_ ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created_
at str - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created_
by str - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- endpoint_
type str - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- instance_
id str - The GUID of the Secrets Manager instance.
- name str
- A human-readable unique name to assign to your custom credentials configuration.
- region str
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- schemas
Sequence[Sm
Custom Credentials Configuration Schema Args] - (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- sm_
custom_ strcredentials_ configuration_ id - The unique identifier of this resource.
- task_
timeout str - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated_
at str - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
- api
Key StringRef - The IAM credentials secret ID that is used for setting up a custom credentials secret configuration.
- code
Engine Property Map - The parameters required to configure Code Engine. Nested scheme for code_engine:
- code
Engine StringKey Ref - (String) The IAM API key used by the credentials system to access this Secrets Manager instance..
- created
At String - (String) The date when the configuration was created. The date format follows
RFC 3339
. - created
By String - (String) The unique identifier that is associated with the entity that created the configuration.
- Constraints: The maximum length is
128
characters. The minimum length is4
characters.
- Constraints: The maximum length is
- endpoint
Type String - The endpoint type. If not provided the endpoint type is determined by the
visibility
argument provided in the provider configuration.- Constraints: Allowable values are:
private
,public
.
- Constraints: Allowable values are:
- instance
Id String - The GUID of the Secrets Manager instance.
- name String
- A human-readable unique name to assign to your custom credentials configuration.
- region String
- The region of the Secrets Manager instance. If not provided defaults to the region defined in the IBM provider configuration.
- schemas List<Property Map>
- (List) The schema that defines the format of the input and output parameters (the credentials) of the Code Engine job. Nested scheme for schema:
- sm
Custom StringCredentials Configuration Id - The unique identifier of this resource.
- task
Timeout String - Specifies the maximum allowed time for a Code Engine task to be completed. Consists of a number followed by a time unit, for example "3m". Supported time units are
s
(seconds),m
(minutes) and 'h' (hours). - updated
At String - (String) The date when the configuration was modified. The date format follows
RFC 3339
.
Supporting Types
SmCustomCredentialsConfigurationCodeEngine, SmCustomCredentialsConfigurationCodeEngineArgs
- job_
name str - The Code Engine job name used by this custom credentials configuration.
- project_
id str - The Project ID of your Code Engine project used by this custom credentials configuration.
- region str
- The region of the Code Engine project.
SmCustomCredentialsConfigurationSchema, SmCustomCredentialsConfigurationSchemaArgs
- Credentials
List<Sm
Custom Credentials Configuration Schema Credential> - (List) The schema of the credentials. Nested scheme for credentials:
- Parameters
List<Sm
Custom Credentials Configuration Schema Parameter> - (List) The schema of the input parameters. Nested scheme for parameters:
- Credentials
[]Sm
Custom Credentials Configuration Schema Credential - (List) The schema of the credentials. Nested scheme for credentials:
- Parameters
[]Sm
Custom Credentials Configuration Schema Parameter - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
List<Sm
Custom Credentials Configuration Schema Credential> - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
List<Sm
Custom Credentials Configuration Schema Parameter> - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
Sm
Custom Credentials Configuration Schema Credential[] - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
Sm
Custom Credentials Configuration Schema Parameter[] - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials
Sequence[Sm
Custom Credentials Configuration Schema Credential] - (List) The schema of the credentials. Nested scheme for credentials:
- parameters
Sequence[Sm
Custom Credentials Configuration Schema Parameter] - (List) The schema of the input parameters. Nested scheme for parameters:
- credentials List<Property Map>
- (List) The schema of the credentials. Nested scheme for credentials:
- parameters List<Property Map>
- (List) The schema of the input parameters. Nested scheme for parameters:
SmCustomCredentialsConfigurationSchemaCredential, SmCustomCredentialsConfigurationSchemaCredentialArgs
SmCustomCredentialsConfigurationSchemaParameter, SmCustomCredentialsConfigurationSchemaParameterArgs
- Env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- Format string
- (String) The format of the credential, for example 'required:true, type:string'.
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- Env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- Format string
- (String) The format of the credential, for example 'required:true, type:string'.
- Name string
- A human-readable unique name to assign to your custom credentials configuration.
- env
Variable StringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format String
- (String) The format of the credential, for example 'required:true, type:string'.
- name String
- A human-readable unique name to assign to your custom credentials configuration.
- env
Variable stringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format string
- (String) The format of the credential, for example 'required:true, type:string'.
- name string
- A human-readable unique name to assign to your custom credentials configuration.
- env_
variable_ strname - (String) The name of the environment variable associated with the configuration schema parameter.
- format str
- (String) The format of the credential, for example 'required:true, type:string'.
- name str
- A human-readable unique name to assign to your custom credentials configuration.
- env
Variable StringName - (String) The name of the environment variable associated with the configuration schema parameter.
- format String
- (String) The format of the credential, for example 'required:true, type:string'.
- name String
- A human-readable unique name to assign to your custom credentials configuration.
Import
You can import the ibm_sm_custom_credentials_configuration
resource by using region
, instance_id
, and name
.
For more information, see the documentation
Syntax
bash
$ pulumi import ibm:index/smCustomCredentialsConfiguration:SmCustomCredentialsConfiguration sm_custom_credentials_configuration <region>/<instance_id>/<name>
Example
bash
$ pulumi import ibm:index/smCustomCredentialsConfiguration:SmCustomCredentialsConfiguration my_config us-east/6ebc4224-e983-496a-8a54-f40a0bfa9175/example-custom-credentials-config
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.