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",
});
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")
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
})
}
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",
});
});
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());
}
}
resources:
iamTrustedProfileIdentityInstance:
type: ibm:IamTrustedProfileIdentity
properties:
identifier: identifier
identityType: user
profileId: profile_id
type: user
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 string
- The unique name of the resource.
- args IamTrustedProfileIdentityArgs
- 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 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 string
- The unique name of the resource.
- args IamTrustedProfileIdentityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IamTrustedProfileIdentityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
var iamTrustedProfileIdentityResource = new IamTrustedProfileIdentity("iamTrustedProfileIdentityResource", IamTrustedProfileIdentityArgs.builder()
.identifier("string")
.identityType("string")
.profileId("string")
.type("string")
.accounts("string")
.description("string")
.iamTrustedProfileIdentityId("string")
.build());
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")
const iamTrustedProfileIdentityResource = new ibm.IamTrustedProfileIdentity("iamTrustedProfileIdentityResource", {
identifier: "string",
identityType: "string",
profileId: "string",
type: "string",
accounts: ["string"],
description: "string",
iamTrustedProfileIdentityId: "string",
});
type: ibm:IamTrustedProfileIdentity
properties:
accounts:
- string
description: string
iamTrustedProfileIdentityId: string
identifier: string
identityType: string
profileId: string
type: string
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 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.
- Identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- Profile
Id string - ID of the trusted profile.
- Type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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'.
- Iam
Trusted stringProfile Identity Id - 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.
- Identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- Profile
Id string - ID of the trusted profile.
- Type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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
Trusted stringProfile Identity Id - 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.
- identity
Type String - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id String - ID of the trusted profile.
- type String
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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'.
- iam
Trusted StringProfile Identity Id - 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.
- identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id string - ID of the trusted profile.
- type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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
Trusted stringProfile Identity Id - 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
.
- Constraints: Allowable values are:
- profile_
id str - ID of the trusted profile.
- type str
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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_ strprofile_ identity_ id - 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.
- identity
Type String - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id String - ID of the trusted profile.
- type String
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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'.
- iam
Trusted StringProfile Identity Id - 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
- 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.
- 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'.
- Iam
Trusted stringProfile Identity Id - 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.
- Identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- Profile
Id string - ID of the trusted profile.
- Type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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
Trusted stringProfile Identity Id - 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.
- Identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- Profile
Id string - ID of the trusted profile.
- Type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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'.
- iam
Trusted StringProfile Identity Id - 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.
- identity
Type String - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id String - ID of the trusted profile.
- type String
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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
Trusted stringProfile Identity Id - 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.
- identity
Type string - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id string - ID of the trusted profile.
- type string
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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_ strprofile_ identity_ id - 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
.
- Constraints: Allowable values are:
- profile_
id str - ID of the trusted profile.
- type str
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- 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'.
- iam
Trusted StringProfile Identity Id - 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.
- identity
Type String - Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
- profile
Id String - ID of the trusted profile.
- type String
- Type of the identity.
- Constraints: Allowable values are:
user
,serviceid
,crn
.
- Constraints: Allowable values are:
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>
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.