@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
123 lines (122 loc) • 4.82 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
* Manage the conversion rules of identity provider within HuaweiCloud IAM service.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const providerId = config.requireObject("providerId");
* const conversion = new huaweicloud.iam.ProviderConversion("conversion", {
* providerId: providerId,
* conversionRules: [
* {
* locals: [{
* username: "Tom",
* }],
* remotes: [{
* attribute: "Tom",
* }],
* },
* {
* locals: [{
* username: "FederationUser",
* }],
* remotes: [{
* attribute: "username",
* condition: "any_one_of",
* values: [
* "Tom",
* "Jerry",
* ],
* }],
* },
* ],
* });
* ```
*
* <!--markdownlint-disable MD033-->
*
* ## Import
*
* Identity provider conversion rules are imported using the `provider_id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Iam/providerConversion:ProviderConversion conversion example_com_provider_oidc
* ```
*/
export declare class ProviderConversion extends pulumi.CustomResource {
/**
* Get an existing ProviderConversion resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: ProviderConversionState, opts?: pulumi.CustomResourceOptions): ProviderConversion;
/**
* Returns true if the given object is an instance of ProviderConversion. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is ProviderConversion;
/**
* Specifies the identity conversion rules of the identity provider.
* You can use identity conversion rules to map the identities of existing users to Huawei Cloud and manage their access
* to cloud resources.
* The object structure is documented below.
*/
readonly conversionRules: pulumi.Output<outputs.Iam.ProviderConversionConversionRule[]>;
/**
* Specifies the ID of the identity provider used to manage the conversion rules.
* Changing this parameter will create a new resource.
*/
readonly providerId: pulumi.Output<string>;
/**
* Create a ProviderConversion resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: ProviderConversionArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering ProviderConversion resources.
*/
export interface ProviderConversionState {
/**
* Specifies the identity conversion rules of the identity provider.
* You can use identity conversion rules to map the identities of existing users to Huawei Cloud and manage their access
* to cloud resources.
* The object structure is documented below.
*/
conversionRules?: pulumi.Input<pulumi.Input<inputs.Iam.ProviderConversionConversionRule>[]>;
/**
* Specifies the ID of the identity provider used to manage the conversion rules.
* Changing this parameter will create a new resource.
*/
providerId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a ProviderConversion resource.
*/
export interface ProviderConversionArgs {
/**
* Specifies the identity conversion rules of the identity provider.
* You can use identity conversion rules to map the identities of existing users to Huawei Cloud and manage their access
* to cloud resources.
* The object structure is documented below.
*/
conversionRules: pulumi.Input<pulumi.Input<inputs.Iam.ProviderConversionConversionRule>[]>;
/**
* Specifies the ID of the identity provider used to manage the conversion rules.
* Changing this parameter will create a new resource.
*/
providerId: pulumi.Input<string>;
}