ibm.IamTrustedProfileLink
Explore with Pulumi AI
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:
- Cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- Link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- Profile
Id string - ID of the trusted profile.
- Iam
Trusted stringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- Name string
- Optional name of the Link.
- Cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- Link
Iam
Trusted Profile Link Link Args - Link details. Nested schema for link:
- Profile
Id string - ID of the trusted profile.
- Iam
Trusted stringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- Name string
- Optional name of the Link.
- cr
Type String - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- profile
Id String - ID of the trusted profile.
- iam
Trusted StringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- name String
- Optional name of the Link.
- cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- profile
Id string - ID of the trusted profile.
- iam
Trusted stringProfile Link Id - 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
Iam
Trusted Profile Link Link Args - Link details. Nested schema for link:
- profile_
id str - ID of the trusted profile.
- iam_
trusted_ strprofile_ link_ id - The unique identifier of the iam_trusted_profile_link.
- name str
- Optional name of the Link.
- cr
Type String - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- link Property Map
- Link details. Nested schema for link:
- profile
Id String - ID of the trusted profile.
- iam
Trusted StringProfile Link Id - 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:
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - (String) the unique identifier of the link.
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Id string
- The provider-assigned unique ID for this managed resource.
- Link
Id string - (String) the unique identifier of the link.
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - (String) the unique identifier of the link.
- modified
At String - (String) If set contains a date time string of the last modification date in ISO format.
- created
At string - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag string - (String) version of the link.
- id string
- The provider-assigned unique ID for this managed resource.
- link
Id string - (String) the unique identifier of the link.
- modified
At 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.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- id String
- The provider-assigned unique ID for this managed resource.
- link
Id String - (String) the unique identifier of the link.
- modified
At 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.
- Cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Iam
Trusted stringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- Link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- Link
Id string - (String) the unique identifier of the link.
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- Name string
- Optional name of the Link.
- Profile
Id string - ID of the trusted profile.
- Cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- Created
At string - (String) If set contains a date time string of the creation date in ISO format.
- Entity
Tag string - (String) version of the link.
- Iam
Trusted stringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- Link
Iam
Trusted Profile Link Link Args - Link details. Nested schema for link:
- Link
Id string - (String) the unique identifier of the link.
- Modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- Name string
- Optional name of the Link.
- Profile
Id string - ID of the trusted profile.
- cr
Type String - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- iam
Trusted StringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- link
Id String - (String) the unique identifier of the link.
- modified
At String - (String) If set contains a date time string of the last modification date in ISO format.
- name String
- Optional name of the Link.
- profile
Id String - ID of the trusted profile.
- cr
Type string - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- created
At string - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag string - (String) version of the link.
- iam
Trusted stringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- link
Iam
Trusted Profile Link Link - Link details. Nested schema for link:
- link
Id string - (String) the unique identifier of the link.
- modified
At string - (String) If set contains a date time string of the last modification date in ISO format.
- name string
- Optional name of the Link.
- profile
Id 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_ strprofile_ link_ id - The unique identifier of the iam_trusted_profile_link.
- link
Iam
Trusted Profile Link Link Args - 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.
- cr
Type String - The compute resource type. Valid values are VSI, IKS_SA, ROKS_SA.
- created
At String - (String) If set contains a date time string of the creation date in ISO format.
- entity
Tag String - (String) version of the link.
- iam
Trusted StringProfile Link Id - The unique identifier of the iam_trusted_profile_link.
- link Property Map
- Link details. Nested schema for link:
- link
Id String - (String) the unique identifier of the link.
- modified
At String - (String) If set contains a date time string of the last modification date in ISO format.
- name String
- Optional name of the Link.
- profile
Id String - ID of the trusted profile.
Supporting Types
IamTrustedProfileLinkLink, IamTrustedProfileLinkLinkArgs
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.