1. Packages
  2. Ibm Provider
  3. API Docs
  4. IamTrustedProfileIdentities
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

ibm.IamTrustedProfileIdentities

Explore with Pulumi AI

ibm logo
ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud

    Create, update, and delete iam_trusted_profile_identitiess with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfileIdentitiesInstance = new ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesInstance", {
        identities: [{
            accounts: ["accounts"],
            description: "description",
            iamId: "iam_id",
            identifier: "identifier",
            type: "user",
        }],
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profile_identities_instance = ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesInstance",
        identities=[{
            "accounts": ["accounts"],
            "description": "description",
            "iam_id": "iam_id",
            "identifier": "identifier",
            "type": "user",
        }],
        profile_id="profile_id")
    
    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.NewIamTrustedProfileIdentities(ctx, "iamTrustedProfileIdentitiesInstance", &ibm.IamTrustedProfileIdentitiesArgs{
    			Identities: ibm.IamTrustedProfileIdentitiesIdentityArray{
    				&ibm.IamTrustedProfileIdentitiesIdentityArgs{
    					Accounts: pulumi.StringArray{
    						pulumi.String("accounts"),
    					},
    					Description: pulumi.String("description"),
    					IamId:       pulumi.String("iam_id"),
    					Identifier:  pulumi.String("identifier"),
    					Type:        pulumi.String("user"),
    				},
    			},
    			ProfileId: pulumi.String("profile_id"),
    		})
    		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 iamTrustedProfileIdentitiesInstance = new Ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesInstance", new()
        {
            Identities = new[]
            {
                new Ibm.Inputs.IamTrustedProfileIdentitiesIdentityArgs
                {
                    Accounts = new[]
                    {
                        "accounts",
                    },
                    Description = "description",
                    IamId = "iam_id",
                    Identifier = "identifier",
                    Type = "user",
                },
            },
            ProfileId = "profile_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IamTrustedProfileIdentities;
    import com.pulumi.ibm.IamTrustedProfileIdentitiesArgs;
    import com.pulumi.ibm.inputs.IamTrustedProfileIdentitiesIdentityArgs;
    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 iamTrustedProfileIdentitiesInstance = new IamTrustedProfileIdentities("iamTrustedProfileIdentitiesInstance", IamTrustedProfileIdentitiesArgs.builder()
                .identities(IamTrustedProfileIdentitiesIdentityArgs.builder()
                    .accounts("accounts")
                    .description("description")
                    .iamId("iam_id")
                    .identifier("identifier")
                    .type("user")
                    .build())
                .profileId("profile_id")
                .build());
    
        }
    }
    
    resources:
      iamTrustedProfileIdentitiesInstance:
        type: ibm:IamTrustedProfileIdentities
        properties:
          identities:
            - accounts:
                - accounts
              description: description
              iamId: iam_id
              identifier: identifier
              type: user
          profileId: profile_id
    

    Create IamTrustedProfileIdentities Resource

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

    Constructor syntax

    new IamTrustedProfileIdentities(name: string, args: IamTrustedProfileIdentitiesArgs, opts?: CustomResourceOptions);
    @overload
    def IamTrustedProfileIdentities(resource_name: str,
                                    args: IamTrustedProfileIdentitiesArgs,
                                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamTrustedProfileIdentities(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    profile_id: Optional[str] = None,
                                    iam_trusted_profile_identities_id: Optional[str] = None,
                                    identities: Optional[Sequence[IamTrustedProfileIdentitiesIdentityArgs]] = None)
    func NewIamTrustedProfileIdentities(ctx *Context, name string, args IamTrustedProfileIdentitiesArgs, opts ...ResourceOption) (*IamTrustedProfileIdentities, error)
    public IamTrustedProfileIdentities(string name, IamTrustedProfileIdentitiesArgs args, CustomResourceOptions? opts = null)
    public IamTrustedProfileIdentities(String name, IamTrustedProfileIdentitiesArgs args)
    public IamTrustedProfileIdentities(String name, IamTrustedProfileIdentitiesArgs args, CustomResourceOptions options)
    
    type: ibm:IamTrustedProfileIdentities
    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 IamTrustedProfileIdentitiesArgs
    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 IamTrustedProfileIdentitiesArgs
    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 IamTrustedProfileIdentitiesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamTrustedProfileIdentitiesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamTrustedProfileIdentitiesArgs
    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 iamTrustedProfileIdentitiesResource = new Ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesResource", new()
    {
        ProfileId = "string",
        IamTrustedProfileIdentitiesId = "string",
        Identities = new[]
        {
            new Ibm.Inputs.IamTrustedProfileIdentitiesIdentityArgs
            {
                IamId = "string",
                Identifier = "string",
                Type = "string",
                Accounts = new[]
                {
                    "string",
                },
                Description = "string",
            },
        },
    });
    
    example, err := ibm.NewIamTrustedProfileIdentities(ctx, "iamTrustedProfileIdentitiesResource", &ibm.IamTrustedProfileIdentitiesArgs{
    	ProfileId:                     pulumi.String("string"),
    	IamTrustedProfileIdentitiesId: pulumi.String("string"),
    	Identities: ibm.IamTrustedProfileIdentitiesIdentityArray{
    		&ibm.IamTrustedProfileIdentitiesIdentityArgs{
    			IamId:      pulumi.String("string"),
    			Identifier: pulumi.String("string"),
    			Type:       pulumi.String("string"),
    			Accounts: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Description: pulumi.String("string"),
    		},
    	},
    })
    
    var iamTrustedProfileIdentitiesResource = new IamTrustedProfileIdentities("iamTrustedProfileIdentitiesResource", IamTrustedProfileIdentitiesArgs.builder()
        .profileId("string")
        .iamTrustedProfileIdentitiesId("string")
        .identities(IamTrustedProfileIdentitiesIdentityArgs.builder()
            .iamId("string")
            .identifier("string")
            .type("string")
            .accounts("string")
            .description("string")
            .build())
        .build());
    
    iam_trusted_profile_identities_resource = ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesResource",
        profile_id="string",
        iam_trusted_profile_identities_id="string",
        identities=[{
            "iam_id": "string",
            "identifier": "string",
            "type": "string",
            "accounts": ["string"],
            "description": "string",
        }])
    
    const iamTrustedProfileIdentitiesResource = new ibm.IamTrustedProfileIdentities("iamTrustedProfileIdentitiesResource", {
        profileId: "string",
        iamTrustedProfileIdentitiesId: "string",
        identities: [{
            iamId: "string",
            identifier: "string",
            type: "string",
            accounts: ["string"],
            description: "string",
        }],
    });
    
    type: ibm:IamTrustedProfileIdentities
    properties:
        iamTrustedProfileIdentitiesId: string
        identities:
            - accounts:
                - string
              description: string
              iamId: string
              identifier: string
              type: string
        profileId: string
    

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

    ProfileId string
    ID of the trusted profile.
    IamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    Identities List<IamTrustedProfileIdentitiesIdentity>
    List of identities. Nested schema for identities:
    ProfileId string
    ID of the trusted profile.
    IamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    Identities []IamTrustedProfileIdentitiesIdentityArgs
    List of identities. Nested schema for identities:
    profileId String
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId String
    The unique identifier of the iam_trusted_profile_identities.
    identities List<IamTrustedProfileIdentitiesIdentity>
    List of identities. Nested schema for identities:
    profileId string
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    identities IamTrustedProfileIdentitiesIdentity[]
    List of identities. Nested schema for identities:
    profile_id str
    ID of the trusted profile.
    iam_trusted_profile_identities_id str
    The unique identifier of the iam_trusted_profile_identities.
    identities Sequence[IamTrustedProfileIdentitiesIdentityArgs]
    List of identities. Nested schema for identities:
    profileId String
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId String
    The unique identifier of the iam_trusted_profile_identities.
    identities List<Property Map>
    List of identities. Nested schema for identities:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    IfMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    Id string
    The provider-assigned unique ID for this managed resource.
    IfMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    id String
    The provider-assigned unique ID for this managed resource.
    ifMatch String
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    id string
    The provider-assigned unique ID for this managed resource.
    ifMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    id str
    The provider-assigned unique ID for this managed resource.
    if_match str
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    id String
    The provider-assigned unique ID for this managed resource.
    ifMatch String
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.

    Look up Existing IamTrustedProfileIdentities Resource

    Get an existing IamTrustedProfileIdentities 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?: IamTrustedProfileIdentitiesState, opts?: CustomResourceOptions): IamTrustedProfileIdentities
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            iam_trusted_profile_identities_id: Optional[str] = None,
            identities: Optional[Sequence[IamTrustedProfileIdentitiesIdentityArgs]] = None,
            if_match: Optional[str] = None,
            profile_id: Optional[str] = None) -> IamTrustedProfileIdentities
    func GetIamTrustedProfileIdentities(ctx *Context, name string, id IDInput, state *IamTrustedProfileIdentitiesState, opts ...ResourceOption) (*IamTrustedProfileIdentities, error)
    public static IamTrustedProfileIdentities Get(string name, Input<string> id, IamTrustedProfileIdentitiesState? state, CustomResourceOptions? opts = null)
    public static IamTrustedProfileIdentities get(String name, Output<String> id, IamTrustedProfileIdentitiesState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IamTrustedProfileIdentities    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    IamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    Identities List<IamTrustedProfileIdentitiesIdentity>
    List of identities. Nested schema for identities:
    IfMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    ProfileId string
    ID of the trusted profile.
    IamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    Identities []IamTrustedProfileIdentitiesIdentityArgs
    List of identities. Nested schema for identities:
    IfMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    ProfileId string
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId String
    The unique identifier of the iam_trusted_profile_identities.
    identities List<IamTrustedProfileIdentitiesIdentity>
    List of identities. Nested schema for identities:
    ifMatch String
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    profileId String
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId string
    The unique identifier of the iam_trusted_profile_identities.
    identities IamTrustedProfileIdentitiesIdentity[]
    List of identities. Nested schema for identities:
    ifMatch string
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    profileId string
    ID of the trusted profile.
    iam_trusted_profile_identities_id str
    The unique identifier of the iam_trusted_profile_identities.
    identities Sequence[IamTrustedProfileIdentitiesIdentityArgs]
    List of identities. Nested schema for identities:
    if_match str
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    profile_id str
    ID of the trusted profile.
    iamTrustedProfileIdentitiesId String
    The unique identifier of the iam_trusted_profile_identities.
    identities List<Property Map>
    List of identities. Nested schema for identities:
    ifMatch String
    Entity tag of the Identities to be updated. Specify the tag that you retrieved when reading the Profile Identities. This value helps identify parallel usage of this API. Pass * to indicate updating any available version, which may result in stale updates.
    profileId String
    ID of the trusted profile.

    Supporting Types

    IamTrustedProfileIdentitiesIdentity, IamTrustedProfileIdentitiesIdentityArgs

    IamId string
    IAM ID of the identity.
    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.
    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'.
    IamId string
    IAM ID of the identity.
    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.
    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'.
    iamId String
    IAM ID of the identity.
    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.
    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'.
    iamId string
    IAM ID of the identity.
    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.
    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'.
    iam_id str
    IAM ID of the identity.
    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.
    type 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'.
    iamId String
    IAM ID of the identity.
    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.
    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'.

    Import

    You can import the ibm_iam_trusted_profile_identities resource by using profile_id. Profile id of the profile identities response.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/iamTrustedProfileIdentities:IamTrustedProfileIdentities iam_trusted_profile_identities <profile-id>
    ```
    
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.81.1 published on Wednesday, Aug 6, 2025 by ibm-cloud