ibm.AppidLanguages
Explore with Pulumi AI
Create, update, or delete an IBM Cloud AppID Management Services languages. For more information, see supported languages
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const lang = new ibm.AppidLanguages("lang", {
tenantId: _var.tenant_id,
languages: [
"en",
"es-ES",
"fr-FR",
],
});
import pulumi
import pulumi_ibm as ibm
lang = ibm.AppidLanguages("lang",
tenant_id=var["tenant_id"],
languages=[
"en",
"es-ES",
"fr-FR",
])
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.NewAppidLanguages(ctx, "lang", &ibm.AppidLanguagesArgs{
TenantId: pulumi.Any(_var.Tenant_id),
Languages: pulumi.StringArray{
pulumi.String("en"),
pulumi.String("es-ES"),
pulumi.String("fr-FR"),
},
})
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 lang = new Ibm.AppidLanguages("lang", new()
{
TenantId = @var.Tenant_id,
Languages = new[]
{
"en",
"es-ES",
"fr-FR",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.AppidLanguages;
import com.pulumi.ibm.AppidLanguagesArgs;
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 lang = new AppidLanguages("lang", AppidLanguagesArgs.builder()
.tenantId(var_.tenant_id())
.languages(
"en",
"es-ES",
"fr-FR")
.build());
}
}
resources:
lang:
type: ibm:AppidLanguages
properties:
tenantId: ${var.tenant_id}
languages:
- en
- es-ES
- fr-FR
Create AppidLanguages Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppidLanguages(name: string, args: AppidLanguagesArgs, opts?: CustomResourceOptions);
@overload
def AppidLanguages(resource_name: str,
args: AppidLanguagesArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppidLanguages(resource_name: str,
opts: Optional[ResourceOptions] = None,
languages: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None,
appid_languages_id: Optional[str] = None)
func NewAppidLanguages(ctx *Context, name string, args AppidLanguagesArgs, opts ...ResourceOption) (*AppidLanguages, error)
public AppidLanguages(string name, AppidLanguagesArgs args, CustomResourceOptions? opts = null)
public AppidLanguages(String name, AppidLanguagesArgs args)
public AppidLanguages(String name, AppidLanguagesArgs args, CustomResourceOptions options)
type: ibm:AppidLanguages
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 AppidLanguagesArgs
- 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 AppidLanguagesArgs
- 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 AppidLanguagesArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppidLanguagesArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppidLanguagesArgs
- 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 appidLanguagesResource = new Ibm.AppidLanguages("appidLanguagesResource", new()
{
Languages = new[]
{
"string",
},
TenantId = "string",
AppidLanguagesId = "string",
});
example, err := ibm.NewAppidLanguages(ctx, "appidLanguagesResource", &ibm.AppidLanguagesArgs{
Languages: pulumi.StringArray{
pulumi.String("string"),
},
TenantId: pulumi.String("string"),
AppidLanguagesId: pulumi.String("string"),
})
var appidLanguagesResource = new AppidLanguages("appidLanguagesResource", AppidLanguagesArgs.builder()
.languages("string")
.tenantId("string")
.appidLanguagesId("string")
.build());
appid_languages_resource = ibm.AppidLanguages("appidLanguagesResource",
languages=["string"],
tenant_id="string",
appid_languages_id="string")
const appidLanguagesResource = new ibm.AppidLanguages("appidLanguagesResource", {
languages: ["string"],
tenantId: "string",
appidLanguagesId: "string",
});
type: ibm:AppidLanguages
properties:
appidLanguagesId: string
languages:
- string
tenantId: string
AppidLanguages 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 AppidLanguages resource accepts the following input properties:
- Languages List<string>
- The list of languages that can be used to customize email templates for Cloud Directory
- Tenant
Id string - The AppID instance GUID
- Appid
Languages stringId
- Languages []string
- The list of languages that can be used to customize email templates for Cloud Directory
- Tenant
Id string - The AppID instance GUID
- Appid
Languages stringId
- languages List<String>
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id String - The AppID instance GUID
- appid
Languages StringId
- languages string[]
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id string - The AppID instance GUID
- appid
Languages stringId
- languages Sequence[str]
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant_
id str - The AppID instance GUID
- appid_
languages_ strid
- languages List<String>
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id String - The AppID instance GUID
- appid
Languages StringId
Outputs
All input properties are implicitly available as output properties. Additionally, the AppidLanguages resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing AppidLanguages Resource
Get an existing AppidLanguages 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?: AppidLanguagesState, opts?: CustomResourceOptions): AppidLanguages
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
appid_languages_id: Optional[str] = None,
languages: Optional[Sequence[str]] = None,
tenant_id: Optional[str] = None) -> AppidLanguages
func GetAppidLanguages(ctx *Context, name string, id IDInput, state *AppidLanguagesState, opts ...ResourceOption) (*AppidLanguages, error)
public static AppidLanguages Get(string name, Input<string> id, AppidLanguagesState? state, CustomResourceOptions? opts = null)
public static AppidLanguages get(String name, Output<String> id, AppidLanguagesState state, CustomResourceOptions options)
resources: _: type: ibm:AppidLanguages 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.
- Appid
Languages stringId - Languages List<string>
- The list of languages that can be used to customize email templates for Cloud Directory
- Tenant
Id string - The AppID instance GUID
- Appid
Languages stringId - Languages []string
- The list of languages that can be used to customize email templates for Cloud Directory
- Tenant
Id string - The AppID instance GUID
- appid
Languages StringId - languages List<String>
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id String - The AppID instance GUID
- appid
Languages stringId - languages string[]
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id string - The AppID instance GUID
- appid_
languages_ strid - languages Sequence[str]
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant_
id str - The AppID instance GUID
- appid
Languages StringId - languages List<String>
- The list of languages that can be used to customize email templates for Cloud Directory
- tenant
Id String - The AppID instance GUID
Import
The ibm_appid_languages
resource can be imported by using the AppID tenant ID.
Syntax
bash
$ pulumi import ibm:index/appidLanguages:AppidLanguages lang <tenant_id>
Example
bash
$ pulumi import ibm:index/appidLanguages:AppidLanguages lang 5fa344a8-d361-4bc2-9051-58ca253f4b2b
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.