1. Packages
  2. Ibm Provider
  3. API Docs
  4. IamTrustedProfileLink
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.IamTrustedProfileLink

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Create, update, and delete iam_trusted_profile_links with this resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const iamTrustedProfileLinkInstance = new ibm.IamTrustedProfileLink("iamTrustedProfileLinkInstance", {
        crType: "cr_type",
        link: {
            crn: "crn",
            name: "name",
            namespace: "namespace",
        },
        profileId: "profile_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    iam_trusted_profile_link_instance = ibm.IamTrustedProfileLink("iamTrustedProfileLinkInstance",
        cr_type="cr_type",
        link={
            "crn": "crn",
            "name": "name",
            "namespace": "namespace",
        },
        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.NewIamTrustedProfileLink(ctx, "iamTrustedProfileLinkInstance", &ibm.IamTrustedProfileLinkArgs{
    			CrType: pulumi.String("cr_type"),
    			Link: &ibm.IamTrustedProfileLinkLinkArgs{
    				Crn:       pulumi.String("crn"),
    				Name:      pulumi.String("name"),
    				Namespace: pulumi.String("namespace"),
    			},
    			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 iamTrustedProfileLinkInstance = new Ibm.IamTrustedProfileLink("iamTrustedProfileLinkInstance", new()
        {
            CrType = "cr_type",
            Link = new Ibm.Inputs.IamTrustedProfileLinkLinkArgs
            {
                Crn = "crn",
                Name = "name",
                Namespace = "namespace",
            },
            ProfileId = "profile_id",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IamTrustedProfileLink;
    import com.pulumi.ibm.IamTrustedProfileLinkArgs;
    import com.pulumi.ibm.inputs.IamTrustedProfileLinkLinkArgs;
    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 iamTrustedProfileLinkInstance = new IamTrustedProfileLink("iamTrustedProfileLinkInstance", IamTrustedProfileLinkArgs.builder()
                .crType("cr_type")
                .link(IamTrustedProfileLinkLinkArgs.builder()
                    .crn("crn")
                    .name("name")
                    .namespace("namespace")
                    .build())
                .profileId("profile_id")
                .build());
    
        }
    }
    
    resources:
      iamTrustedProfileLinkInstance:
        type: ibm:IamTrustedProfileLink
        properties:
          crType: cr_type
          link:
            crn: crn
            name: name
            namespace: namespace
          profileId: profile_id
    

    Create IamTrustedProfileLink Resource

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

    Constructor syntax

    new IamTrustedProfileLink(name: string, args: IamTrustedProfileLinkArgs, opts?: CustomResourceOptions);
    @overload
    def IamTrustedProfileLink(resource_name: str,
                              args: IamTrustedProfileLinkArgs,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def IamTrustedProfileLink(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              cr_type: Optional[str] = None,
                              link: Optional[IamTrustedProfileLinkLinkArgs] = None,
                              profile_id: Optional[str] = None,
                              iam_trusted_profile_link_id: Optional[str] = None,
                              name: Optional[str] = None)
    func NewIamTrustedProfileLink(ctx *Context, name string, args IamTrustedProfileLinkArgs, opts ...ResourceOption) (*IamTrustedProfileLink, error)
    public IamTrustedProfileLink(string name, IamTrustedProfileLinkArgs args, CustomResourceOptions? opts = null)
    public IamTrustedProfileLink(String name, IamTrustedProfileLinkArgs args)
    public IamTrustedProfileLink(String name, IamTrustedProfileLinkArgs args, CustomResourceOptions options)
    
    type: ibm:IamTrustedProfileLink
    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 IamTrustedProfileLinkArgs
    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 IamTrustedProfileLinkArgs
    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 IamTrustedProfileLinkArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IamTrustedProfileLinkArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IamTrustedProfileLinkArgs
    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 iamTrustedProfileLinkResource = new Ibm.IamTrustedProfileLink("iamTrustedProfileLinkResource", new()
    {
        CrType = "string",
        Link = new Ibm.Inputs.IamTrustedProfileLinkLinkArgs
        {
            Crn = "string",
            Name = "string",
            Namespace = "string",
        },
        ProfileId = "string",
        IamTrustedProfileLinkId = "string",
        Name = "string",
    });
    
    example, err := ibm.NewIamTrustedProfileLink(ctx, "iamTrustedProfileLinkResource", &ibm.IamTrustedProfileLinkArgs{
    	CrType: pulumi.String("string"),
    	Link: &ibm.IamTrustedProfileLinkLinkArgs{
    		Crn:       pulumi.String("string"),
    		Name:      pulumi.String("string"),
    		Namespace: pulumi.String("string"),
    	},
    	ProfileId:               pulumi.String("string"),
    	IamTrustedProfileLinkId: pulumi.String("string"),
    	Name:                    pulumi.String("string"),
    })
    
    var iamTrustedProfileLinkResource = new IamTrustedProfileLink("iamTrustedProfileLinkResource", IamTrustedProfileLinkArgs.builder()
        .crType("string")
        .link(IamTrustedProfileLinkLinkArgs.builder()
            .crn("string")
            .name("string")
            .namespace("string")
            .build())
        .profileId("string")
        .iamTrustedProfileLinkId("string")
        .name("string")
        .build());
    
    iam_trusted_profile_link_resource = ibm.IamTrustedProfileLink("iamTrustedProfileLinkResource",
        cr_type="string",
        link={
            "crn": "string",
            "name": "string",
            "namespace": "string",
        },
        profile_id="string",
        iam_trusted_profile_link_id="string",
        name="string")
    
    const iamTrustedProfileLinkResource = new ibm.IamTrustedProfileLink("iamTrustedProfileLinkResource", {
        crType: "string",
        link: {
            crn: "string",
            name: "string",
            namespace: "string",
        },
        profileId: "string",
        iamTrustedProfileLinkId: "string",
        name: "string",
    });
    
    type: ibm:IamTrustedProfileLink
    properties:
        crType: string
        iamTrustedProfileLinkId: string
        link:
            crn: string
            name: string
            namespace: string
        name: string
        profileId: string
    

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

    CrType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    Link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    ProfileId string
    ID of the trusted profile.
    IamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    Name string
    Optional name of the Link.
    CrType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    Link IamTrustedProfileLinkLinkArgs
    Link details. Nested schema for link:
    ProfileId string
    ID of the trusted profile.
    IamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    Name string
    Optional name of the Link.
    crType String
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    profileId String
    ID of the trusted profile.
    iamTrustedProfileLinkId String
    The unique identifier of the iam_trusted_profile_link.
    name String
    Optional name of the Link.
    crType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    profileId string
    ID of the trusted profile.
    iamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    name string
    Optional name of the Link.
    cr_type str
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    link IamTrustedProfileLinkLinkArgs
    Link details. Nested schema for link:
    profile_id str
    ID of the trusted profile.
    iam_trusted_profile_link_id str
    The unique identifier of the iam_trusted_profile_link.
    name str
    Optional name of the Link.
    crType String
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    link Property Map
    Link details. Nested schema for link:
    profileId String
    ID of the trusted profile.
    iamTrustedProfileLinkId String
    The unique identifier of the iam_trusted_profile_link.
    name String
    Optional name of the Link.

    Outputs

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

    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the link.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkId string
    (String) the unique identifier of the link.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the link.
    Id string
    The provider-assigned unique ID for this managed resource.
    LinkId string
    (String) the unique identifier of the link.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the link.
    id String
    The provider-assigned unique ID for this managed resource.
    linkId String
    (String) the unique identifier of the link.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    createdAt string
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag string
    (String) version of the link.
    id string
    The provider-assigned unique ID for this managed resource.
    linkId string
    (String) the unique identifier of the link.
    modifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    created_at str
    (String) If set contains a date time string of the creation date in ISO format.
    entity_tag str
    (String) version of the link.
    id str
    The provider-assigned unique ID for this managed resource.
    link_id str
    (String) the unique identifier of the link.
    modified_at str
    (String) If set contains a date time string of the last modification date in ISO format.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the link.
    id String
    The provider-assigned unique ID for this managed resource.
    linkId String
    (String) the unique identifier of the link.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.

    Look up Existing IamTrustedProfileLink Resource

    Get an existing IamTrustedProfileLink 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?: IamTrustedProfileLinkState, opts?: CustomResourceOptions): IamTrustedProfileLink
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cr_type: Optional[str] = None,
            created_at: Optional[str] = None,
            entity_tag: Optional[str] = None,
            iam_trusted_profile_link_id: Optional[str] = None,
            link: Optional[IamTrustedProfileLinkLinkArgs] = None,
            link_id: Optional[str] = None,
            modified_at: Optional[str] = None,
            name: Optional[str] = None,
            profile_id: Optional[str] = None) -> IamTrustedProfileLink
    func GetIamTrustedProfileLink(ctx *Context, name string, id IDInput, state *IamTrustedProfileLinkState, opts ...ResourceOption) (*IamTrustedProfileLink, error)
    public static IamTrustedProfileLink Get(string name, Input<string> id, IamTrustedProfileLinkState? state, CustomResourceOptions? opts = null)
    public static IamTrustedProfileLink get(String name, Output<String> id, IamTrustedProfileLinkState state, CustomResourceOptions options)
    resources:  _:    type: ibm:IamTrustedProfileLink    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:
    CrType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the link.
    IamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    Link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    LinkId string
    (String) the unique identifier of the link.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    Optional name of the Link.
    ProfileId string
    ID of the trusted profile.
    CrType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    CreatedAt string
    (String) If set contains a date time string of the creation date in ISO format.
    EntityTag string
    (String) version of the link.
    IamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    Link IamTrustedProfileLinkLinkArgs
    Link details. Nested schema for link:
    LinkId string
    (String) the unique identifier of the link.
    ModifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    Name string
    Optional name of the Link.
    ProfileId string
    ID of the trusted profile.
    crType String
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the link.
    iamTrustedProfileLinkId String
    The unique identifier of the iam_trusted_profile_link.
    link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    linkId String
    (String) the unique identifier of the link.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    Optional name of the Link.
    profileId String
    ID of the trusted profile.
    crType string
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt string
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag string
    (String) version of the link.
    iamTrustedProfileLinkId string
    The unique identifier of the iam_trusted_profile_link.
    link IamTrustedProfileLinkLink
    Link details. Nested schema for link:
    linkId string
    (String) the unique identifier of the link.
    modifiedAt string
    (String) If set contains a date time string of the last modification date in ISO format.
    name string
    Optional name of the Link.
    profileId string
    ID of the trusted profile.
    cr_type str
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    created_at str
    (String) If set contains a date time string of the creation date in ISO format.
    entity_tag str
    (String) version of the link.
    iam_trusted_profile_link_id str
    The unique identifier of the iam_trusted_profile_link.
    link IamTrustedProfileLinkLinkArgs
    Link details. Nested schema for link:
    link_id str
    (String) the unique identifier of the link.
    modified_at str
    (String) If set contains a date time string of the last modification date in ISO format.
    name str
    Optional name of the Link.
    profile_id str
    ID of the trusted profile.
    crType String
    The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
    createdAt String
    (String) If set contains a date time string of the creation date in ISO format.
    entityTag String
    (String) version of the link.
    iamTrustedProfileLinkId String
    The unique identifier of the iam_trusted_profile_link.
    link Property Map
    Link details. Nested schema for link:
    linkId String
    (String) the unique identifier of the link.
    modifiedAt String
    (String) If set contains a date time string of the last modification date in ISO format.
    name String
    Optional name of the Link.
    profileId String
    ID of the trusted profile.

    Supporting Types

    Crn string
    The CRN of the compute resource.
    Name string
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    Namespace string
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
    Crn string
    The CRN of the compute resource.
    Name string
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    Namespace string
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
    crn String
    The CRN of the compute resource.
    name String
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    namespace String
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
    crn string
    The CRN of the compute resource.
    name string
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    namespace string
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
    crn str
    The CRN of the compute resource.
    name str
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    namespace str
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.
    crn String
    The CRN of the compute resource.
    name String
    Name of the compute resource, only required if cr_type is IKS_SA or ROKS_SA.
    namespace String
    The compute resource namespace, only required if cr_type is IKS_SA or ROKS_SA.

    Import

    You can import the ibm_iam_trusted_profile_link resource by using id.

    The id property can be formed from profile_id, and link_id in the following format:

    
    <profile_id>/<link_id>
    
    
    • profile_id: A string. ID of the trusted profile.

    • link_id: A string. the unique identifier of the link.

    Syntax

    
    ```sh
    $ pulumi import ibm:index/iamTrustedProfileLink:IamTrustedProfileLink iam_trusted_profile_link <profile_id>/<link_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.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud