1. Packages
  2. Ibm Provider
  3. API Docs
  4. IamTrustedProfileIdentity
ibm 1.77.1 published on Monday, Apr 14, 2025 by ibm-cloud

ibm.IamTrustedProfileIdentity

Explore with Pulumi AI

Provides a resource for iam_trusted_profile_identity. This allows iam_trusted_profile_identity to be created, updated and deleted.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";

const iamTrustedProfileIdentityInstance = new ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityInstance", {
    identifier: "identifier",
    identityType: "user",
    profileId: "profile_id",
    type: "user",
});
Copy
import pulumi
import pulumi_ibm as ibm

iam_trusted_profile_identity_instance = ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityInstance",
    identifier="identifier",
    identity_type="user",
    profile_id="profile_id",
    type="user")
Copy
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.NewIamTrustedProfileIdentity(ctx, "iamTrustedProfileIdentityInstance", &ibm.IamTrustedProfileIdentityArgs{
			Identifier:   pulumi.String("identifier"),
			IdentityType: pulumi.String("user"),
			ProfileId:    pulumi.String("profile_id"),
			Type:         pulumi.String("user"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;

return await Deployment.RunAsync(() => 
{
    var iamTrustedProfileIdentityInstance = new Ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityInstance", new()
    {
        Identifier = "identifier",
        IdentityType = "user",
        ProfileId = "profile_id",
        Type = "user",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ibm.IamTrustedProfileIdentity;
import com.pulumi.ibm.IamTrustedProfileIdentityArgs;
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 iamTrustedProfileIdentityInstance = new IamTrustedProfileIdentity("iamTrustedProfileIdentityInstance", IamTrustedProfileIdentityArgs.builder()
            .identifier("identifier")
            .identityType("user")
            .profileId("profile_id")
            .type("user")
            .build());

    }
}
Copy
resources:
  iamTrustedProfileIdentityInstance:
    type: ibm:IamTrustedProfileIdentity
    properties:
      identifier: identifier
      identityType: user
      profileId: profile_id
      type: user
Copy

Create IamTrustedProfileIdentity Resource

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

Constructor syntax

new IamTrustedProfileIdentity(name: string, args: IamTrustedProfileIdentityArgs, opts?: CustomResourceOptions);
@overload
def IamTrustedProfileIdentity(resource_name: str,
                              args: IamTrustedProfileIdentityArgs,
                              opts: Optional[ResourceOptions] = None)

@overload
def IamTrustedProfileIdentity(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              identifier: Optional[str] = None,
                              identity_type: Optional[str] = None,
                              profile_id: Optional[str] = None,
                              type: Optional[str] = None,
                              accounts: Optional[Sequence[str]] = None,
                              description: Optional[str] = None,
                              iam_trusted_profile_identity_id: Optional[str] = None)
func NewIamTrustedProfileIdentity(ctx *Context, name string, args IamTrustedProfileIdentityArgs, opts ...ResourceOption) (*IamTrustedProfileIdentity, error)
public IamTrustedProfileIdentity(string name, IamTrustedProfileIdentityArgs args, CustomResourceOptions? opts = null)
public IamTrustedProfileIdentity(String name, IamTrustedProfileIdentityArgs args)
public IamTrustedProfileIdentity(String name, IamTrustedProfileIdentityArgs args, CustomResourceOptions options)
type: ibm:IamTrustedProfileIdentity
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IamTrustedProfileIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IamTrustedProfileIdentityArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IamTrustedProfileIdentityArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IamTrustedProfileIdentityArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IamTrustedProfileIdentityArgs
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 iamTrustedProfileIdentityResource = new Ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityResource", new()
{
    Identifier = "string",
    IdentityType = "string",
    ProfileId = "string",
    Type = "string",
    Accounts = new[]
    {
        "string",
    },
    Description = "string",
    IamTrustedProfileIdentityId = "string",
});
Copy
example, err := ibm.NewIamTrustedProfileIdentity(ctx, "iamTrustedProfileIdentityResource", &ibm.IamTrustedProfileIdentityArgs{
Identifier: pulumi.String("string"),
IdentityType: pulumi.String("string"),
ProfileId: pulumi.String("string"),
Type: pulumi.String("string"),
Accounts: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
IamTrustedProfileIdentityId: pulumi.String("string"),
})
Copy
var iamTrustedProfileIdentityResource = new IamTrustedProfileIdentity("iamTrustedProfileIdentityResource", IamTrustedProfileIdentityArgs.builder()
    .identifier("string")
    .identityType("string")
    .profileId("string")
    .type("string")
    .accounts("string")
    .description("string")
    .iamTrustedProfileIdentityId("string")
    .build());
Copy
iam_trusted_profile_identity_resource = ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityResource",
    identifier="string",
    identity_type="string",
    profile_id="string",
    type="string",
    accounts=["string"],
    description="string",
    iam_trusted_profile_identity_id="string")
Copy
const iamTrustedProfileIdentityResource = new ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityResource", {
    identifier: "string",
    identityType: "string",
    profileId: "string",
    type: "string",
    accounts: ["string"],
    description: "string",
    iamTrustedProfileIdentityId: "string",
});
Copy
type: ibm:IamTrustedProfileIdentity
properties:
    accounts:
        - string
    description: string
    iamTrustedProfileIdentityId: string
    identifier: string
    identityType: string
    profileId: string
    type: string
Copy

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

Identifier This property is required. string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
IdentityType This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
ProfileId This property is required. string
ID of the trusted profile.
Type This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
Accounts List<string>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
Identifier This property is required. string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
IdentityType This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
ProfileId This property is required. string
ID of the trusted profile.
Type This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
Accounts []string
Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier This property is required. String
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType This property is required. String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId This property is required. String
ID of the trusted profile.
type This property is required. String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts List<String>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description String
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId String
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier This property is required. string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId This property is required. string
ID of the trusted profile.
type This property is required. string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts string[]
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier This property is required. str
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identity_type This property is required. str
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profile_id This property is required. str
ID of the trusted profile.
type This property is required. str
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts Sequence[str]
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description str
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iam_trusted_profile_identity_id str
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier This property is required. String
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType This property is required. String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId This property is required. String
ID of the trusted profile.
type This property is required. String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts List<String>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description String
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId String
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.

Outputs

All input properties are implicitly available as output properties. Additionally, the IamTrustedProfileIdentity 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 IamTrustedProfileIdentity Resource

Get an existing IamTrustedProfileIdentity 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?: IamTrustedProfileIdentityState, opts?: CustomResourceOptions): IamTrustedProfileIdentity
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        accounts: Optional[Sequence[str]] = None,
        description: Optional[str] = None,
        iam_trusted_profile_identity_id: Optional[str] = None,
        identifier: Optional[str] = None,
        identity_type: Optional[str] = None,
        profile_id: Optional[str] = None,
        type: Optional[str] = None) -> IamTrustedProfileIdentity
func GetIamTrustedProfileIdentity(ctx *Context, name string, id IDInput, state *IamTrustedProfileIdentityState, opts ...ResourceOption) (*IamTrustedProfileIdentity, error)
public static IamTrustedProfileIdentity Get(string name, Input<string> id, IamTrustedProfileIdentityState? state, CustomResourceOptions? opts = null)
public static IamTrustedProfileIdentity get(String name, Output<String> id, IamTrustedProfileIdentityState state, CustomResourceOptions options)
resources:  _:    type: ibm:IamTrustedProfileIdentity    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
Accounts List<string>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
Identifier string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
IdentityType string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
ProfileId string
ID of the trusted profile.
Type string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
Accounts []string
Only valid for the type user. Accounts from which a user can assume the trusted profile.
Description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
IamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
Identifier string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
IdentityType string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
ProfileId string
ID of the trusted profile.
Type string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts List<String>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description String
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId String
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier String
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId String
ID of the trusted profile.
type String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts string[]
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description string
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId string
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier string
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId string
ID of the trusted profile.
type string
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts Sequence[str]
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description str
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iam_trusted_profile_identity_id str
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier str
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identity_type str
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profile_id str
ID of the trusted profile.
type str
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
accounts List<String>
Only valid for the type user. Accounts from which a user can assume the trusted profile.
description String
Description of the identity that can assume the trusted profile. This is optional field for all the types of identities. When this field is not set for the identity type 'serviceid' then the description of the service id is used. Description is recommended for the identity type 'crn' E.g. 'Instance 1234 of IBM Cloud Service project'.
iamTrustedProfileIdentityId String
The unique identifier of the iam_trusted_profile_identity. Id is combination of profile_id| identity-type| identifier-id.
identifier String
Identifier of the identity that can assume the trusted profiles. This can be a user identifier (IAM id), serviceid or crn. Internally it uses account id of the service id for the identifier 'serviceid' and for the identifier 'crn' it uses account id contained in the CRN.
identityType String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.
profileId String
ID of the trusted profile.
type String
Type of the identity.

  • Constraints: Allowable values are: user, serviceid, crn.

Import

You can import the ibm_iam_trusted_profile_identity resource by using iam_id.

The iam_id property can be formed from profile-id, identity-type, and identifier-id in the following format:

||

  • profile-id: A string. ID of the trusted profile.

  • identity-type: A string. Type of the identity.

  • identifier-id: A string. Identifier of the identity that can assume the trusted profiles.

Syntax

$ pulumi import ibm:index/iamTrustedProfileIdentity:IamTrustedProfileIdentity iam_trusted_profile_identity <profile-id>|<identity-type>|<identifier-id>
Copy

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.