volcengine.iam.OidcProvider
Provides a resource to manage iam oidc provider
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@volcengine/pulumi";
const foo = new volcengine.iam.OidcProvider("foo", {
clientIds: [
"test-client-id-1",
"test-client-id-2",
],
description: "acc-test-oidc",
issuanceLimitTime: 6,
issuerUrl: "test-issuer-url",
oidcProviderName: "oidc_provider",
thumbprints: [
"test-thumbprint-1",
"test-thumbprint-2",
],
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.iam.OidcProvider("foo",
client_ids=[
"test-client-id-1",
"test-client-id-2",
],
description="acc-test-oidc",
issuance_limit_time=6,
issuer_url="test-issuer-url",
oidc_provider_name="oidc_provider",
thumbprints=[
"test-thumbprint-1",
"test-thumbprint-2",
])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/iam"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := iam.NewOidcProvider(ctx, "foo", &iam.OidcProviderArgs{
ClientIds: pulumi.StringArray{
pulumi.String("test-client-id-1"),
pulumi.String("test-client-id-2"),
},
Description: pulumi.String("acc-test-oidc"),
IssuanceLimitTime: pulumi.Int(6),
IssuerUrl: pulumi.String("test-issuer-url"),
OidcProviderName: pulumi.String("oidc_provider"),
Thumbprints: pulumi.StringArray{
pulumi.String("test-thumbprint-1"),
pulumi.String("test-thumbprint-2"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = new Volcengine.Iam.OidcProvider("foo", new()
{
ClientIds = new[]
{
"test-client-id-1",
"test-client-id-2",
},
Description = "acc-test-oidc",
IssuanceLimitTime = 6,
IssuerUrl = "test-issuer-url",
OidcProviderName = "oidc_provider",
Thumbprints = new[]
{
"test-thumbprint-1",
"test-thumbprint-2",
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.iam.OidcProvider;
import com.pulumi.volcengine.iam.OidcProviderArgs;
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 foo = new OidcProvider("foo", OidcProviderArgs.builder()
.clientIds(
"test-client-id-1",
"test-client-id-2")
.description("acc-test-oidc")
.issuanceLimitTime(6)
.issuerUrl("test-issuer-url")
.oidcProviderName("oidc_provider")
.thumbprints(
"test-thumbprint-1",
"test-thumbprint-2")
.build());
}
}
resources:
foo:
type: volcengine:iam:OidcProvider
properties:
clientIds:
- test-client-id-1
- test-client-id-2
description: acc-test-oidc
issuanceLimitTime: 6
issuerUrl: test-issuer-url
oidcProviderName: oidc_provider
thumbprints:
- test-thumbprint-1
- test-thumbprint-2
Create OidcProvider Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new OidcProvider(name: string, args: OidcProviderArgs, opts?: CustomResourceOptions);@overload
def OidcProvider(resource_name: str,
args: OidcProviderArgs,
opts: Optional[ResourceOptions] = None)
@overload
def OidcProvider(resource_name: str,
opts: Optional[ResourceOptions] = None,
client_ids: Optional[Sequence[str]] = None,
issuer_url: Optional[str] = None,
oidc_provider_name: Optional[str] = None,
thumbprints: Optional[Sequence[str]] = None,
description: Optional[str] = None,
issuance_limit_time: Optional[int] = None)func NewOidcProvider(ctx *Context, name string, args OidcProviderArgs, opts ...ResourceOption) (*OidcProvider, error)public OidcProvider(string name, OidcProviderArgs args, CustomResourceOptions? opts = null)
public OidcProvider(String name, OidcProviderArgs args)
public OidcProvider(String name, OidcProviderArgs args, CustomResourceOptions options)
type: volcengine:iam:OidcProvider
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 OidcProviderArgs
- 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 OidcProviderArgs
- 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 OidcProviderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args OidcProviderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args OidcProviderArgs
- 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 oidcProviderResource = new Volcengine.Iam.OidcProvider("oidcProviderResource", new()
{
ClientIds = new[]
{
"string",
},
IssuerUrl = "string",
OidcProviderName = "string",
Thumbprints = new[]
{
"string",
},
Description = "string",
IssuanceLimitTime = 0,
});
example, err := iam.NewOidcProvider(ctx, "oidcProviderResource", &iam.OidcProviderArgs{
ClientIds: pulumi.StringArray{
pulumi.String("string"),
},
IssuerUrl: pulumi.String("string"),
OidcProviderName: pulumi.String("string"),
Thumbprints: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
IssuanceLimitTime: pulumi.Int(0),
})
var oidcProviderResource = new OidcProvider("oidcProviderResource", OidcProviderArgs.builder()
.clientIds("string")
.issuerUrl("string")
.oidcProviderName("string")
.thumbprints("string")
.description("string")
.issuanceLimitTime(0)
.build());
oidc_provider_resource = volcengine.iam.OidcProvider("oidcProviderResource",
client_ids=["string"],
issuer_url="string",
oidc_provider_name="string",
thumbprints=["string"],
description="string",
issuance_limit_time=0)
const oidcProviderResource = new volcengine.iam.OidcProvider("oidcProviderResource", {
clientIds: ["string"],
issuerUrl: "string",
oidcProviderName: "string",
thumbprints: ["string"],
description: "string",
issuanceLimitTime: 0,
});
type: volcengine:iam:OidcProvider
properties:
clientIds:
- string
description: string
issuanceLimitTime: 0
issuerUrl: string
oidcProviderName: string
thumbprints:
- string
OidcProvider 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 OidcProvider resource accepts the following input properties:
- Client
Ids List<string> - The client IDs of the OIDC provider.
- Issuer
Url string - The URL of the OIDC provider.
- Oidc
Provider stringName - The name of the OIDC provider.
- Thumbprints List<string>
- The thumbprints of the OIDC provider.
- Description string
- The description of the OIDC provider.
- Issuance
Limit intTime - The issuance limit time of the OIDC provider.
- Client
Ids []string - The client IDs of the OIDC provider.
- Issuer
Url string - The URL of the OIDC provider.
- Oidc
Provider stringName - The name of the OIDC provider.
- Thumbprints []string
- The thumbprints of the OIDC provider.
- Description string
- The description of the OIDC provider.
- Issuance
Limit intTime - The issuance limit time of the OIDC provider.
- client
Ids List<String> - The client IDs of the OIDC provider.
- issuer
Url String - The URL of the OIDC provider.
- oidc
Provider StringName - The name of the OIDC provider.
- thumbprints List<String>
- The thumbprints of the OIDC provider.
- description String
- The description of the OIDC provider.
- issuance
Limit IntegerTime - The issuance limit time of the OIDC provider.
- client
Ids string[] - The client IDs of the OIDC provider.
- issuer
Url string - The URL of the OIDC provider.
- oidc
Provider stringName - The name of the OIDC provider.
- thumbprints string[]
- The thumbprints of the OIDC provider.
- description string
- The description of the OIDC provider.
- issuance
Limit numberTime - The issuance limit time of the OIDC provider.
- client_
ids Sequence[str] - The client IDs of the OIDC provider.
- issuer_
url str - The URL of the OIDC provider.
- oidc_
provider_ strname - The name of the OIDC provider.
- thumbprints Sequence[str]
- The thumbprints of the OIDC provider.
- description str
- The description of the OIDC provider.
- issuance_
limit_ inttime - The issuance limit time of the OIDC provider.
- client
Ids List<String> - The client IDs of the OIDC provider.
- issuer
Url String - The URL of the OIDC provider.
- oidc
Provider StringName - The name of the OIDC provider.
- thumbprints List<String>
- The thumbprints of the OIDC provider.
- description String
- The description of the OIDC provider.
- issuance
Limit NumberTime - The issuance limit time of the OIDC provider.
Outputs
All input properties are implicitly available as output properties. Additionally, the OidcProvider resource produces the following output properties:
- Create
Date string - The create date of the OIDC provider.
- Id string
- The provider-assigned unique ID for this managed resource.
- Trn string
- The trn of OIDC provider.
- Update
Date string - The update date of the OIDC provider.
- Create
Date string - The create date of the OIDC provider.
- Id string
- The provider-assigned unique ID for this managed resource.
- Trn string
- The trn of OIDC provider.
- Update
Date string - The update date of the OIDC provider.
- create
Date String - The create date of the OIDC provider.
- id String
- The provider-assigned unique ID for this managed resource.
- trn String
- The trn of OIDC provider.
- update
Date String - The update date of the OIDC provider.
- create
Date string - The create date of the OIDC provider.
- id string
- The provider-assigned unique ID for this managed resource.
- trn string
- The trn of OIDC provider.
- update
Date string - The update date of the OIDC provider.
- create_
date str - The create date of the OIDC provider.
- id str
- The provider-assigned unique ID for this managed resource.
- trn str
- The trn of OIDC provider.
- update_
date str - The update date of the OIDC provider.
- create
Date String - The create date of the OIDC provider.
- id String
- The provider-assigned unique ID for this managed resource.
- trn String
- The trn of OIDC provider.
- update
Date String - The update date of the OIDC provider.
Look up Existing OidcProvider Resource
Get an existing OidcProvider 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?: OidcProviderState, opts?: CustomResourceOptions): OidcProvider@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
client_ids: Optional[Sequence[str]] = None,
create_date: Optional[str] = None,
description: Optional[str] = None,
issuance_limit_time: Optional[int] = None,
issuer_url: Optional[str] = None,
oidc_provider_name: Optional[str] = None,
thumbprints: Optional[Sequence[str]] = None,
trn: Optional[str] = None,
update_date: Optional[str] = None) -> OidcProviderfunc GetOidcProvider(ctx *Context, name string, id IDInput, state *OidcProviderState, opts ...ResourceOption) (*OidcProvider, error)public static OidcProvider Get(string name, Input<string> id, OidcProviderState? state, CustomResourceOptions? opts = null)public static OidcProvider get(String name, Output<String> id, OidcProviderState state, CustomResourceOptions options)resources: _: type: volcengine:iam:OidcProvider 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.
- Client
Ids List<string> - The client IDs of the OIDC provider.
- Create
Date string - The create date of the OIDC provider.
- Description string
- The description of the OIDC provider.
- Issuance
Limit intTime - The issuance limit time of the OIDC provider.
- Issuer
Url string - The URL of the OIDC provider.
- Oidc
Provider stringName - The name of the OIDC provider.
- Thumbprints List<string>
- The thumbprints of the OIDC provider.
- Trn string
- The trn of OIDC provider.
- Update
Date string - The update date of the OIDC provider.
- Client
Ids []string - The client IDs of the OIDC provider.
- Create
Date string - The create date of the OIDC provider.
- Description string
- The description of the OIDC provider.
- Issuance
Limit intTime - The issuance limit time of the OIDC provider.
- Issuer
Url string - The URL of the OIDC provider.
- Oidc
Provider stringName - The name of the OIDC provider.
- Thumbprints []string
- The thumbprints of the OIDC provider.
- Trn string
- The trn of OIDC provider.
- Update
Date string - The update date of the OIDC provider.
- client
Ids List<String> - The client IDs of the OIDC provider.
- create
Date String - The create date of the OIDC provider.
- description String
- The description of the OIDC provider.
- issuance
Limit IntegerTime - The issuance limit time of the OIDC provider.
- issuer
Url String - The URL of the OIDC provider.
- oidc
Provider StringName - The name of the OIDC provider.
- thumbprints List<String>
- The thumbprints of the OIDC provider.
- trn String
- The trn of OIDC provider.
- update
Date String - The update date of the OIDC provider.
- client
Ids string[] - The client IDs of the OIDC provider.
- create
Date string - The create date of the OIDC provider.
- description string
- The description of the OIDC provider.
- issuance
Limit numberTime - The issuance limit time of the OIDC provider.
- issuer
Url string - The URL of the OIDC provider.
- oidc
Provider stringName - The name of the OIDC provider.
- thumbprints string[]
- The thumbprints of the OIDC provider.
- trn string
- The trn of OIDC provider.
- update
Date string - The update date of the OIDC provider.
- client_
ids Sequence[str] - The client IDs of the OIDC provider.
- create_
date str - The create date of the OIDC provider.
- description str
- The description of the OIDC provider.
- issuance_
limit_ inttime - The issuance limit time of the OIDC provider.
- issuer_
url str - The URL of the OIDC provider.
- oidc_
provider_ strname - The name of the OIDC provider.
- thumbprints Sequence[str]
- The thumbprints of the OIDC provider.
- trn str
- The trn of OIDC provider.
- update_
date str - The update date of the OIDC provider.
- client
Ids List<String> - The client IDs of the OIDC provider.
- create
Date String - The create date of the OIDC provider.
- description String
- The description of the OIDC provider.
- issuance
Limit NumberTime - The issuance limit time of the OIDC provider.
- issuer
Url String - The URL of the OIDC provider.
- oidc
Provider StringName - The name of the OIDC provider.
- thumbprints List<String>
- The thumbprints of the OIDC provider.
- trn String
- The trn of OIDC provider.
- update
Date String - The update date of the OIDC provider.
Import
IamOidcProvider can be imported using the id, e.g.
$ pulumi import volcengine:iam/oidcProvider:OidcProvider default resource_id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
