Create, update, and delete iam_role_templates with this resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const iamRoleTemplateInstance = new ibm.IamRoleTemplate("iam_role_template_instance", {
name: "name",
role: {
name: "name",
displayName: "display_name",
serviceName: "service_name",
description: "description",
actions: ["actions"],
},
});
import pulumi
import pulumi_ibm as ibm
iam_role_template_instance = ibm.IamRoleTemplate("iam_role_template_instance",
name="name",
role={
"name": "name",
"display_name": "display_name",
"service_name": "service_name",
"description": "description",
"actions": ["actions"],
})
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.NewIamRoleTemplate(ctx, "iam_role_template_instance", &ibm.IamRoleTemplateArgs{
Name: pulumi.String("name"),
Role: &ibm.IamRoleTemplateRoleArgs{
Name: pulumi.String("name"),
DisplayName: pulumi.String("display_name"),
ServiceName: pulumi.String("service_name"),
Description: pulumi.String("description"),
Actions: pulumi.StringArray{
pulumi.String("actions"),
},
},
})
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 iamRoleTemplateInstance = new Ibm.IamRoleTemplate("iam_role_template_instance", new()
{
Name = "name",
Role = new Ibm.Inputs.IamRoleTemplateRoleArgs
{
Name = "name",
DisplayName = "display_name",
ServiceName = "service_name",
Description = "description",
Actions = new[]
{
"actions",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamRoleTemplate;
import com.pulumi.ibm.IamRoleTemplateArgs;
import com.pulumi.ibm.inputs.IamRoleTemplateRoleArgs;
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 iamRoleTemplateInstance = new IamRoleTemplate("iamRoleTemplateInstance", IamRoleTemplateArgs.builder()
.name("name")
.role(IamRoleTemplateRoleArgs.builder()
.name("name")
.displayName("display_name")
.serviceName("service_name")
.description("description")
.actions("actions")
.build())
.build());
}
}
resources:
iamRoleTemplateInstance:
type: ibm:IamRoleTemplate
name: iam_role_template_instance
properties:
name: name
role:
name: name
displayName: display_name
serviceName: service_name
description: description
actions:
- actions
Create IamRoleTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IamRoleTemplate(name: string, args?: IamRoleTemplateArgs, opts?: CustomResourceOptions);@overload
def IamRoleTemplate(resource_name: str,
args: Optional[IamRoleTemplateArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def IamRoleTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
committed: Optional[bool] = None,
description: Optional[str] = None,
iam_role_template_id: Optional[str] = None,
name: Optional[str] = None,
role: Optional[IamRoleTemplateRoleArgs] = None)func NewIamRoleTemplate(ctx *Context, name string, args *IamRoleTemplateArgs, opts ...ResourceOption) (*IamRoleTemplate, error)public IamRoleTemplate(string name, IamRoleTemplateArgs? args = null, CustomResourceOptions? opts = null)
public IamRoleTemplate(String name, IamRoleTemplateArgs args)
public IamRoleTemplate(String name, IamRoleTemplateArgs args, CustomResourceOptions options)
type: ibm:IamRoleTemplate
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 IamRoleTemplateArgs
- 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 IamRoleTemplateArgs
- 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 IamRoleTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamRoleTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IamRoleTemplateArgs
- 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 iamRoleTemplateResource = new Ibm.IamRoleTemplate("iamRoleTemplateResource", new()
{
Committed = false,
Description = "string",
IamRoleTemplateId = "string",
Name = "string",
Role = new Ibm.Inputs.IamRoleTemplateRoleArgs
{
Actions = new[]
{
"string",
},
DisplayName = "string",
Name = "string",
ServiceName = "string",
Description = "string",
},
});
example, err := ibm.NewIamRoleTemplate(ctx, "iamRoleTemplateResource", &ibm.IamRoleTemplateArgs{
Committed: pulumi.Bool(false),
Description: pulumi.String("string"),
IamRoleTemplateId: pulumi.String("string"),
Name: pulumi.String("string"),
Role: &ibm.IamRoleTemplateRoleArgs{
Actions: pulumi.StringArray{
pulumi.String("string"),
},
DisplayName: pulumi.String("string"),
Name: pulumi.String("string"),
ServiceName: pulumi.String("string"),
Description: pulumi.String("string"),
},
})
var iamRoleTemplateResource = new IamRoleTemplate("iamRoleTemplateResource", IamRoleTemplateArgs.builder()
.committed(false)
.description("string")
.iamRoleTemplateId("string")
.name("string")
.role(IamRoleTemplateRoleArgs.builder()
.actions("string")
.displayName("string")
.name("string")
.serviceName("string")
.description("string")
.build())
.build());
iam_role_template_resource = ibm.IamRoleTemplate("iamRoleTemplateResource",
committed=False,
description="string",
iam_role_template_id="string",
name="string",
role={
"actions": ["string"],
"display_name": "string",
"name": "string",
"service_name": "string",
"description": "string",
})
const iamRoleTemplateResource = new ibm.IamRoleTemplate("iamRoleTemplateResource", {
committed: false,
description: "string",
iamRoleTemplateId: "string",
name: "string",
role: {
actions: ["string"],
displayName: "string",
name: "string",
serviceName: "string",
description: "string",
},
});
type: ibm:IamRoleTemplate
properties:
committed: false
description: string
iamRoleTemplateId: string
name: string
role:
actions:
- string
description: string
displayName: string
name: string
serviceName: string
IamRoleTemplate 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 IamRoleTemplate resource accepts the following input properties:
- Committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- Description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- Name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- Committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- Description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- Name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Role
Iam
Role Template Role Args - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- committed Boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- description String
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- iam
Role StringTemplate Id - The unique identifier of the iam_role_template.
- name String
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- committed boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- description str
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- iam_
role_ strtemplate_ id - The unique identifier of the iam_role_template.
- name str
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role Args - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- committed Boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- description String
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- iam
Role StringTemplate Id - The unique identifier of the iam_role_template.
- name String
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role Property Map
- The role properties that are created in an action resource when the template is assigned. Nested schema for role:
Outputs
All input properties are implicitly available as output properties. Additionally, the IamRoleTemplate resource produces the following output properties:
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Created
At string - (String) The UTC timestamp when the role template was created.
- Created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Href string
- (String) The href URL that links to the role templates API by role template ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- Last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Role
Template stringId - The role template ID.
- State string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- Version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Created
At string - (String) The UTC timestamp when the role template was created.
- Created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Href string
- (String) The href URL that links to the role templates API by role template ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- Last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Role
Template stringId - The role template ID.
- State string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- Version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id String - (String) Enterprise account ID where this template will be created.
- created
At String - (String) The UTC timestamp when the role template was created.
- created
By StringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- href String
- (String) The href URL that links to the role templates API by role template ID.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified StringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- role
Template StringId - The role template ID.
- state String
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version String
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id string - (String) Enterprise account ID where this template will be created.
- created
At string - (String) The UTC timestamp when the role template was created.
- created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- href string
- (String) The href URL that links to the role templates API by role template ID.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- role
Template stringId - The role template ID.
- state string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account_
id str - (String) Enterprise account ID where this template will be created.
- created_
at str - (String) The UTC timestamp when the role template was created.
- created_
by_ strid - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- href str
- (String) The href URL that links to the role templates API by role template ID.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
modified_ strat - (String) The UTC timestamp when the role template was last modified.
- last_
modified_ strby_ id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- role_
template_ strid - The role template ID.
- state str
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version str
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id String - (String) Enterprise account ID where this template will be created.
- created
At String - (String) The UTC timestamp when the role template was created.
- created
By StringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- href String
- (String) The href URL that links to the role templates API by role template ID.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Modified StringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified StringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- role
Template StringId - The role template ID.
- state String
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version String
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
Look up Existing IamRoleTemplate Resource
Get an existing IamRoleTemplate 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?: IamRoleTemplateState, opts?: CustomResourceOptions): IamRoleTemplate@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
committed: Optional[bool] = None,
created_at: Optional[str] = None,
created_by_id: Optional[str] = None,
description: Optional[str] = None,
href: Optional[str] = None,
iam_role_template_id: Optional[str] = None,
last_modified_at: Optional[str] = None,
last_modified_by_id: Optional[str] = None,
name: Optional[str] = None,
role: Optional[IamRoleTemplateRoleArgs] = None,
role_template_id: Optional[str] = None,
state: Optional[str] = None,
version: Optional[str] = None) -> IamRoleTemplatefunc GetIamRoleTemplate(ctx *Context, name string, id IDInput, state *IamRoleTemplateState, opts ...ResourceOption) (*IamRoleTemplate, error)public static IamRoleTemplate Get(string name, Input<string> id, IamRoleTemplateState? state, CustomResourceOptions? opts = null)public static IamRoleTemplate get(String name, Output<String> id, IamRoleTemplateState state, CustomResourceOptions options)resources: _: type: ibm:IamRoleTemplate 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.
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- Created
At string - (String) The UTC timestamp when the role template was created.
- Created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Href string
- (String) The href URL that links to the role templates API by role template ID.
- Iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- Last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- Last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- Role
Template stringId - The role template ID.
- State string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- Version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- Account
Id string - (String) Enterprise account ID where this template will be created.
- Committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- Created
At string - (String) The UTC timestamp when the role template was created.
- Created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Href string
- (String) The href URL that links to the role templates API by role template ID.
- Iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- Last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- Last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- Name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Role
Iam
Role Template Role Args - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- Role
Template stringId - The role template ID.
- State string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- Version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id String - (String) Enterprise account ID where this template will be created.
- committed Boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- created
At String - (String) The UTC timestamp when the role template was created.
- created
By StringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- description String
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- href String
- (String) The href URL that links to the role templates API by role template ID.
- iam
Role StringTemplate Id - The unique identifier of the iam_role_template.
- last
Modified StringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified StringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- name String
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- role
Template StringId - The role template ID.
- state String
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version String
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id string - (String) Enterprise account ID where this template will be created.
- committed boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- created
At string - (String) The UTC timestamp when the role template was created.
- created
By stringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- description string
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- href string
- (String) The href URL that links to the role templates API by role template ID.
- iam
Role stringTemplate Id - The unique identifier of the iam_role_template.
- last
Modified stringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified stringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- name string
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- role
Template stringId - The role template ID.
- state string
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version string
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account_
id str - (String) Enterprise account ID where this template will be created.
- committed bool
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- created_
at str - (String) The UTC timestamp when the role template was created.
- created_
by_ strid - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- description str
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- href str
- (String) The href URL that links to the role templates API by role template ID.
- iam_
role_ strtemplate_ id - The unique identifier of the iam_role_template.
- last_
modified_ strat - (String) The UTC timestamp when the role template was last modified.
- last_
modified_ strby_ id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- name str
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role
Iam
Role Template Role Args - The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- role_
template_ strid - The role template ID.
- state str
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version str
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
- account
Id String - (String) Enterprise account ID where this template will be created.
- committed Boolean
- Committed status of the template. If committed is set to true, then the template version can no longer be updated.
- created
At String - (String) The UTC timestamp when the role template was created.
- created
By StringId - (String) The IAM ID of the entity that created the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- description String
- Description of the role template. This is shown to users in the enterprise account. Use this to describe the purpose or context of the role for enterprise users managing IAM templates.
- Constraints: The maximum length is
300characters. The minimum length is0characters. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- href String
- (String) The href URL that links to the role templates API by role template ID.
- iam
Role StringTemplate Id - The unique identifier of the iam_role_template.
- last
Modified StringAt - (String) The UTC timestamp when the role template was last modified.
- last
Modified StringBy Id - (String) The IAM ID of the entity that last modified the role template.
- Constraints: The maximum length is
250characters. The minimum length is1character.
- Constraints: The maximum length is
- name String
- Required field when creating a new template. Otherwise, this field is optional. If the field is included, it changes the name value for all existing versions of the template.
- Constraints: The maximum length is
100characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- role Property Map
- The role properties that are created in an action resource when the template is assigned. Nested schema for role:
- role
Template StringId - The role template ID.
- state String
- (String) State of role template.
- Constraints: Allowable values are:
active,deleted.
- Constraints: Allowable values are:
- version String
- (String) The version number of the template used to identify different versions of same template.
- Constraints: The maximum length is
2characters. The minimum length is1character. The value must match regular expression/^[0-9]*$/.
- Constraints: The maximum length is
Supporting Types
IamRoleTemplateRole, IamRoleTemplateRoleArgs
- Actions List<string>
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- Display
Name string - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- Name string
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- Service
Name string - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- Description string
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- Actions []string
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- Display
Name string - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- Name string
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- Service
Name string - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- Description string
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- actions List<String>
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- display
Name String - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- name String
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- service
Name String - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- description String
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- actions string[]
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- display
Name string - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- name string
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- service
Name string - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- description string
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- actions Sequence[str]
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- display_
name str - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- name str
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- service_
name str - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- description str
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
- actions List<String>
- The actions of the role.
- Constraints: The minimum length is
1item.
- Constraints: The minimum length is
- display
Name String - The display the name of the role that is shown in the console.
- Constraints: The maximum length is
50characters. The minimum length is1character. The value must match regular expression/^((?!<|>).)*$/.
- Constraints: The maximum length is
- name String
- The name of the role that is used in the CRN. This must be alphanumeric and capitalized.
- Constraints: The maximum length is
30characters. The minimum length is1character. The value must match regular expression/^[A-Z]{1}[A-Za-z0-9]{0,29}$/.
- Constraints: The maximum length is
- service
Name String - The service name that the role refers.
- Constraints: The maximum length is
300characters. The minimum length is1character.
- Constraints: The maximum length is
- description String
- Description of the role.
- Constraints: The maximum length is
300characters. The minimum length is1character. The value must match regular expression/^.*$/.
- Constraints: The maximum length is
Import
Syntax
bash
$ pulumi import ibm:index/iamRoleTemplate:IamRoleTemplate iam_role_template $role_template_id/$version
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
ibmTerraform Provider.
