flexibleengine.IdentityProviderConversion
Explore with Pulumi AI
Manage the conversion rules of identity provider within FlexibleEngine IAM service.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as flexibleengine from "@pulumi/flexibleengine";
const config = new pulumi.Config();
const providerId = config.requireObject("providerId");
const conversion = new flexibleengine.IdentityProviderConversion("conversion", {
providerId: providerId,
conversionRules: [
{
locals: [{
username: "Tom",
}],
remotes: [{
attribute: "Tom",
}],
},
{
locals: [{
username: "FederationUser",
}],
remotes: [{
attribute: "username",
condition: "any_one_of",
values: [
"Tom",
"Jerry",
],
}],
},
],
});
import pulumi
import pulumi_flexibleengine as flexibleengine
config = pulumi.Config()
provider_id = config.require_object("providerId")
conversion = flexibleengine.IdentityProviderConversion("conversion",
provider_id=provider_id,
conversion_rules=[
{
"locals": [{
"username": "Tom",
}],
"remotes": [{
"attribute": "Tom",
}],
},
{
"locals": [{
"username": "FederationUser",
}],
"remotes": [{
"attribute": "username",
"condition": "any_one_of",
"values": [
"Tom",
"Jerry",
],
}],
},
])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/flexibleengine/flexibleengine"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
providerId := cfg.RequireObject("providerId")
_, err := flexibleengine.NewIdentityProviderConversion(ctx, "conversion", &flexibleengine.IdentityProviderConversionArgs{
ProviderId: pulumi.Any(providerId),
ConversionRules: flexibleengine.IdentityProviderConversionConversionRuleArray{
&flexibleengine.IdentityProviderConversionConversionRuleArgs{
Locals: flexibleengine.IdentityProviderConversionConversionRuleLocalArray{
&flexibleengine.IdentityProviderConversionConversionRuleLocalArgs{
Username: pulumi.String("Tom"),
},
},
Remotes: flexibleengine.IdentityProviderConversionConversionRuleRemoteArray{
&flexibleengine.IdentityProviderConversionConversionRuleRemoteArgs{
Attribute: pulumi.String("Tom"),
},
},
},
&flexibleengine.IdentityProviderConversionConversionRuleArgs{
Locals: flexibleengine.IdentityProviderConversionConversionRuleLocalArray{
&flexibleengine.IdentityProviderConversionConversionRuleLocalArgs{
Username: pulumi.String("FederationUser"),
},
},
Remotes: flexibleengine.IdentityProviderConversionConversionRuleRemoteArray{
&flexibleengine.IdentityProviderConversionConversionRuleRemoteArgs{
Attribute: pulumi.String("username"),
Condition: pulumi.String("any_one_of"),
Values: pulumi.StringArray{
pulumi.String("Tom"),
pulumi.String("Jerry"),
},
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Flexibleengine = Pulumi.Flexibleengine;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var providerId = config.RequireObject<dynamic>("providerId");
var conversion = new Flexibleengine.IdentityProviderConversion("conversion", new()
{
ProviderId = providerId,
ConversionRules = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleArgs
{
Locals = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleLocalArgs
{
Username = "Tom",
},
},
Remotes = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleRemoteArgs
{
Attribute = "Tom",
},
},
},
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleArgs
{
Locals = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleLocalArgs
{
Username = "FederationUser",
},
},
Remotes = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleRemoteArgs
{
Attribute = "username",
Condition = "any_one_of",
Values = new[]
{
"Tom",
"Jerry",
},
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.flexibleengine.IdentityProviderConversion;
import com.pulumi.flexibleengine.IdentityProviderConversionArgs;
import com.pulumi.flexibleengine.inputs.IdentityProviderConversionConversionRuleArgs;
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) {
final var config = ctx.config();
final var providerId = config.get("providerId");
var conversion = new IdentityProviderConversion("conversion", IdentityProviderConversionArgs.builder()
.providerId(providerId)
.conversionRules(
IdentityProviderConversionConversionRuleArgs.builder()
.locals(IdentityProviderConversionConversionRuleLocalArgs.builder()
.username("Tom")
.build())
.remotes(IdentityProviderConversionConversionRuleRemoteArgs.builder()
.attribute("Tom")
.build())
.build(),
IdentityProviderConversionConversionRuleArgs.builder()
.locals(IdentityProviderConversionConversionRuleLocalArgs.builder()
.username("FederationUser")
.build())
.remotes(IdentityProviderConversionConversionRuleRemoteArgs.builder()
.attribute("username")
.condition("any_one_of")
.values(
"Tom",
"Jerry")
.build())
.build())
.build());
}
}
configuration:
providerId:
type: dynamic
resources:
conversion:
type: flexibleengine:IdentityProviderConversion
properties:
providerId: ${providerId}
conversionRules:
- locals:
- username: Tom
remotes:
- attribute: Tom
- locals:
- username: FederationUser
remotes:
- attribute: username
condition: any_one_of
values:
- Tom
- Jerry
Create IdentityProviderConversion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new IdentityProviderConversion(name: string, args: IdentityProviderConversionArgs, opts?: CustomResourceOptions);
@overload
def IdentityProviderConversion(resource_name: str,
args: IdentityProviderConversionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def IdentityProviderConversion(resource_name: str,
opts: Optional[ResourceOptions] = None,
conversion_rules: Optional[Sequence[IdentityProviderConversionConversionRuleArgs]] = None,
provider_id: Optional[str] = None,
identity_provider_conversion_id: Optional[str] = None)
func NewIdentityProviderConversion(ctx *Context, name string, args IdentityProviderConversionArgs, opts ...ResourceOption) (*IdentityProviderConversion, error)
public IdentityProviderConversion(string name, IdentityProviderConversionArgs args, CustomResourceOptions? opts = null)
public IdentityProviderConversion(String name, IdentityProviderConversionArgs args)
public IdentityProviderConversion(String name, IdentityProviderConversionArgs args, CustomResourceOptions options)
type: flexibleengine:IdentityProviderConversion
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 IdentityProviderConversionArgs
- 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 IdentityProviderConversionArgs
- 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 IdentityProviderConversionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args IdentityProviderConversionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args IdentityProviderConversionArgs
- 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 identityProviderConversionResource = new Flexibleengine.IdentityProviderConversion("identityProviderConversionResource", new()
{
ConversionRules = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleArgs
{
Locals = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleLocalArgs
{
Username = "string",
Group = "string",
},
},
Remotes = new[]
{
new Flexibleengine.Inputs.IdentityProviderConversionConversionRuleRemoteArgs
{
Attribute = "string",
Condition = "string",
Values = new[]
{
"string",
},
},
},
},
},
ProviderId = "string",
IdentityProviderConversionId = "string",
});
example, err := flexibleengine.NewIdentityProviderConversion(ctx, "identityProviderConversionResource", &flexibleengine.IdentityProviderConversionArgs{
ConversionRules: flexibleengine.IdentityProviderConversionConversionRuleArray{
&flexibleengine.IdentityProviderConversionConversionRuleArgs{
Locals: flexibleengine.IdentityProviderConversionConversionRuleLocalArray{
&flexibleengine.IdentityProviderConversionConversionRuleLocalArgs{
Username: pulumi.String("string"),
Group: pulumi.String("string"),
},
},
Remotes: flexibleengine.IdentityProviderConversionConversionRuleRemoteArray{
&flexibleengine.IdentityProviderConversionConversionRuleRemoteArgs{
Attribute: pulumi.String("string"),
Condition: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
},
},
ProviderId: pulumi.String("string"),
IdentityProviderConversionId: pulumi.String("string"),
})
var identityProviderConversionResource = new IdentityProviderConversion("identityProviderConversionResource", IdentityProviderConversionArgs.builder()
.conversionRules(IdentityProviderConversionConversionRuleArgs.builder()
.locals(IdentityProviderConversionConversionRuleLocalArgs.builder()
.username("string")
.group("string")
.build())
.remotes(IdentityProviderConversionConversionRuleRemoteArgs.builder()
.attribute("string")
.condition("string")
.values("string")
.build())
.build())
.providerId("string")
.identityProviderConversionId("string")
.build());
identity_provider_conversion_resource = flexibleengine.IdentityProviderConversion("identityProviderConversionResource",
conversion_rules=[{
"locals": [{
"username": "string",
"group": "string",
}],
"remotes": [{
"attribute": "string",
"condition": "string",
"values": ["string"],
}],
}],
provider_id="string",
identity_provider_conversion_id="string")
const identityProviderConversionResource = new flexibleengine.IdentityProviderConversion("identityProviderConversionResource", {
conversionRules: [{
locals: [{
username: "string",
group: "string",
}],
remotes: [{
attribute: "string",
condition: "string",
values: ["string"],
}],
}],
providerId: "string",
identityProviderConversionId: "string",
});
type: flexibleengine:IdentityProviderConversion
properties:
conversionRules:
- locals:
- group: string
username: string
remotes:
- attribute: string
condition: string
values:
- string
identityProviderConversionId: string
providerId: string
IdentityProviderConversion 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 IdentityProviderConversion resource accepts the following input properties:
- Conversion
Rules List<IdentityProvider Conversion Conversion Rule> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- Provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- Identity
Provider stringConversion Id - The ID of conversion rules.
- Conversion
Rules []IdentityProvider Conversion Conversion Rule Args Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- Provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- Identity
Provider stringConversion Id - The ID of conversion rules.
- conversion
Rules List<IdentityProvider Conversion Conversion Rule> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- provider
Id String - The ID or name of the identity provider used to manage the conversion rules.
- identity
Provider StringConversion Id - The ID of conversion rules.
- conversion
Rules IdentityProvider Conversion Conversion Rule[] Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- identity
Provider stringConversion Id - The ID of conversion rules.
- conversion_
rules Sequence[IdentityProvider Conversion Conversion Rule Args] Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- provider_
id str - The ID or name of the identity provider used to manage the conversion rules.
- identity_
provider_ strconversion_ id - The ID of conversion rules.
- conversion
Rules List<Property Map> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- provider
Id String - The ID or name of the identity provider used to manage the conversion rules.
- identity
Provider StringConversion Id - The ID of conversion rules.
Outputs
All input properties are implicitly available as output properties. Additionally, the IdentityProviderConversion 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 IdentityProviderConversion Resource
Get an existing IdentityProviderConversion 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?: IdentityProviderConversionState, opts?: CustomResourceOptions): IdentityProviderConversion
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
conversion_rules: Optional[Sequence[IdentityProviderConversionConversionRuleArgs]] = None,
identity_provider_conversion_id: Optional[str] = None,
provider_id: Optional[str] = None) -> IdentityProviderConversion
func GetIdentityProviderConversion(ctx *Context, name string, id IDInput, state *IdentityProviderConversionState, opts ...ResourceOption) (*IdentityProviderConversion, error)
public static IdentityProviderConversion Get(string name, Input<string> id, IdentityProviderConversionState? state, CustomResourceOptions? opts = null)
public static IdentityProviderConversion get(String name, Output<String> id, IdentityProviderConversionState state, CustomResourceOptions options)
resources: _: type: flexibleengine:IdentityProviderConversion 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.
- Conversion
Rules List<IdentityProvider Conversion Conversion Rule> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- Identity
Provider stringConversion Id - The ID of conversion rules.
- Provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- Conversion
Rules []IdentityProvider Conversion Conversion Rule Args Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- Identity
Provider stringConversion Id - The ID of conversion rules.
- Provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- conversion
Rules List<IdentityProvider Conversion Conversion Rule> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- identity
Provider StringConversion Id - The ID of conversion rules.
- provider
Id String - The ID or name of the identity provider used to manage the conversion rules.
- conversion
Rules IdentityProvider Conversion Conversion Rule[] Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- identity
Provider stringConversion Id - The ID of conversion rules.
- provider
Id string - The ID or name of the identity provider used to manage the conversion rules.
- conversion_
rules Sequence[IdentityProvider Conversion Conversion Rule Args] Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- identity_
provider_ strconversion_ id - The ID of conversion rules.
- provider_
id str - The ID or name of the identity provider used to manage the conversion rules.
- conversion
Rules List<Property Map> Specifies the identity conversion rules of the identity provider. You can use identity conversion rules to map the identities of existing users to FlexibleEngine and manage their access to cloud resources. The conversion_rules object structure is documented below.
The
conversion_rules
block supports:- identity
Provider StringConversion Id - The ID of conversion rules.
- provider
Id String - The ID or name of the identity provider used to manage the conversion rules.
Supporting Types
IdentityProviderConversionConversionRule, IdentityProviderConversionConversionRuleArgs
- Locals
List<Identity
Provider Conversion Conversion Rule Local> - Specifies the federated user information on the cloud platform. The local object structure is documented below.
- Remotes
List<Identity
Provider Conversion Conversion Rule Remote> Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
- Locals
[]Identity
Provider Conversion Conversion Rule Local - Specifies the federated user information on the cloud platform. The local object structure is documented below.
- Remotes
[]Identity
Provider Conversion Conversion Rule Remote Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
- locals
List<Identity
Provider Conversion Conversion Rule Local> - Specifies the federated user information on the cloud platform. The local object structure is documented below.
- remotes
List<Identity
Provider Conversion Conversion Rule Remote> Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
- locals
Identity
Provider Conversion Conversion Rule Local[] - Specifies the federated user information on the cloud platform. The local object structure is documented below.
- remotes
Identity
Provider Conversion Conversion Rule Remote[] Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
- locals
Sequence[Identity
Provider Conversion Conversion Rule Local] - Specifies the federated user information on the cloud platform. The local object structure is documented below.
- remotes
Sequence[Identity
Provider Conversion Conversion Rule Remote] Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
- locals List<Property Map>
- Specifies the federated user information on the cloud platform. The local object structure is documented below.
- remotes List<Property Map>
Specifies Federated user information in the IDP system. The remote object structure is documented below.
NOTE: If the protocol of identity provider is SAML, this field is an expression consisting of assertion attributes and operators. If the protocol of identity provider is OIDC, the value of this field is determined by the ID token.
The
local
block supports:
IdentityProviderConversionConversionRuleLocal, IdentityProviderConversionConversionRuleLocalArgs
IdentityProviderConversionConversionRuleRemote, IdentityProviderConversionConversionRuleRemoteArgs
Import
Identity provider conversion rules are imported using the provider_id
, e.g.
$ pulumi import flexibleengine:index/identityProviderConversion:IdentityProviderConversion conversion example_com_provider_oidc
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- flexibleengine flexibleenginecloud/terraform-provider-flexibleengine
- License
- Notes
- This Pulumi package is based on the
flexibleengine
Terraform Provider.