1. Packages
  2. Zitadel
  3. API Docs
  4. DefaultOidcSettings
zitadel v0.1.7 published on Tuesday, Mar 26, 2024 by pulumiverse

zitadel.DefaultOidcSettings

Explore with Pulumi AI

zitadel logo
zitadel v0.1.7 published on Tuesday, Mar 26, 2024 by pulumiverse

    Resource representing the default oidc settings.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Zitadel = Pulumiverse.Zitadel;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = new Zitadel.DefaultOidcSettings("default", new()
        {
            AccessTokenLifetime = "12h0m0s",
            IdTokenLifetime = "12h0m0s",
            RefreshTokenExpiration = "720h0m0s",
            RefreshTokenIdleExpiration = "2160h0m0s",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-zitadel/sdk/go/zitadel"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := zitadel.NewDefaultOidcSettings(ctx, "default", &zitadel.DefaultOidcSettingsArgs{
    			AccessTokenLifetime:        pulumi.String("12h0m0s"),
    			IdTokenLifetime:            pulumi.String("12h0m0s"),
    			RefreshTokenExpiration:     pulumi.String("720h0m0s"),
    			RefreshTokenIdleExpiration: pulumi.String("2160h0m0s"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.zitadel.DefaultOidcSettings;
    import com.pulumi.zitadel.DefaultOidcSettingsArgs;
    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 default_ = new DefaultOidcSettings("default", DefaultOidcSettingsArgs.builder()        
                .accessTokenLifetime("12h0m0s")
                .idTokenLifetime("12h0m0s")
                .refreshTokenExpiration("720h0m0s")
                .refreshTokenIdleExpiration("2160h0m0s")
                .build());
    
        }
    }
    
    import pulumi
    import pulumiverse_zitadel as zitadel
    
    default = zitadel.DefaultOidcSettings("default",
        access_token_lifetime="12h0m0s",
        id_token_lifetime="12h0m0s",
        refresh_token_expiration="720h0m0s",
        refresh_token_idle_expiration="2160h0m0s")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as zitadel from "@pulumiverse/zitadel";
    
    const _default = new zitadel.DefaultOidcSettings("default", {
        accessTokenLifetime: "12h0m0s",
        idTokenLifetime: "12h0m0s",
        refreshTokenExpiration: "720h0m0s",
        refreshTokenIdleExpiration: "2160h0m0s",
    });
    
    resources:
      default:
        type: zitadel:DefaultOidcSettings
        properties:
          accessTokenLifetime: 12h0m0s
          idTokenLifetime: 12h0m0s
          refreshTokenExpiration: 720h0m0s
          refreshTokenIdleExpiration: 2160h0m0s
    

    Create DefaultOidcSettings Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DefaultOidcSettings(name: string, args: DefaultOidcSettingsArgs, opts?: CustomResourceOptions);
    @overload
    def DefaultOidcSettings(resource_name: str,
                            args: DefaultOidcSettingsArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def DefaultOidcSettings(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            access_token_lifetime: Optional[str] = None,
                            id_token_lifetime: Optional[str] = None,
                            refresh_token_expiration: Optional[str] = None,
                            refresh_token_idle_expiration: Optional[str] = None)
    func NewDefaultOidcSettings(ctx *Context, name string, args DefaultOidcSettingsArgs, opts ...ResourceOption) (*DefaultOidcSettings, error)
    public DefaultOidcSettings(string name, DefaultOidcSettingsArgs args, CustomResourceOptions? opts = null)
    public DefaultOidcSettings(String name, DefaultOidcSettingsArgs args)
    public DefaultOidcSettings(String name, DefaultOidcSettingsArgs args, CustomResourceOptions options)
    
    type: zitadel:DefaultOidcSettings
    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 DefaultOidcSettingsArgs
    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 DefaultOidcSettingsArgs
    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 DefaultOidcSettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DefaultOidcSettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DefaultOidcSettingsArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var defaultOidcSettingsResource = new Zitadel.DefaultOidcSettings("defaultOidcSettingsResource", new()
    {
        AccessTokenLifetime = "string",
        IdTokenLifetime = "string",
        RefreshTokenExpiration = "string",
        RefreshTokenIdleExpiration = "string",
    });
    
    example, err := zitadel.NewDefaultOidcSettings(ctx, "defaultOidcSettingsResource", &zitadel.DefaultOidcSettingsArgs{
    	AccessTokenLifetime:        pulumi.String("string"),
    	IdTokenLifetime:            pulumi.String("string"),
    	RefreshTokenExpiration:     pulumi.String("string"),
    	RefreshTokenIdleExpiration: pulumi.String("string"),
    })
    
    var defaultOidcSettingsResource = new DefaultOidcSettings("defaultOidcSettingsResource", DefaultOidcSettingsArgs.builder()        
        .accessTokenLifetime("string")
        .idTokenLifetime("string")
        .refreshTokenExpiration("string")
        .refreshTokenIdleExpiration("string")
        .build());
    
    default_oidc_settings_resource = zitadel.DefaultOidcSettings("defaultOidcSettingsResource",
        access_token_lifetime="string",
        id_token_lifetime="string",
        refresh_token_expiration="string",
        refresh_token_idle_expiration="string")
    
    const defaultOidcSettingsResource = new zitadel.DefaultOidcSettings("defaultOidcSettingsResource", {
        accessTokenLifetime: "string",
        idTokenLifetime: "string",
        refreshTokenExpiration: "string",
        refreshTokenIdleExpiration: "string",
    });
    
    type: zitadel:DefaultOidcSettings
    properties:
        accessTokenLifetime: string
        idTokenLifetime: string
        refreshTokenExpiration: string
        refreshTokenIdleExpiration: string
    

    DefaultOidcSettings Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The DefaultOidcSettings resource accepts the following input properties:

    AccessTokenLifetime string
    lifetime duration of access tokens
    IdTokenLifetime string
    lifetime duration of id tokens
    RefreshTokenExpiration string
    expiration duration of refresh tokens
    RefreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    AccessTokenLifetime string
    lifetime duration of access tokens
    IdTokenLifetime string
    lifetime duration of id tokens
    RefreshTokenExpiration string
    expiration duration of refresh tokens
    RefreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    accessTokenLifetime String
    lifetime duration of access tokens
    idTokenLifetime String
    lifetime duration of id tokens
    refreshTokenExpiration String
    expiration duration of refresh tokens
    refreshTokenIdleExpiration String
    expiration duration of idle refresh tokens
    accessTokenLifetime string
    lifetime duration of access tokens
    idTokenLifetime string
    lifetime duration of id tokens
    refreshTokenExpiration string
    expiration duration of refresh tokens
    refreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    access_token_lifetime str
    lifetime duration of access tokens
    id_token_lifetime str
    lifetime duration of id tokens
    refresh_token_expiration str
    expiration duration of refresh tokens
    refresh_token_idle_expiration str
    expiration duration of idle refresh tokens
    accessTokenLifetime String
    lifetime duration of access tokens
    idTokenLifetime String
    lifetime duration of id tokens
    refreshTokenExpiration String
    expiration duration of refresh tokens
    refreshTokenIdleExpiration String
    expiration duration of idle refresh tokens

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DefaultOidcSettings 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 DefaultOidcSettings Resource

    Get an existing DefaultOidcSettings 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?: DefaultOidcSettingsState, opts?: CustomResourceOptions): DefaultOidcSettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            access_token_lifetime: Optional[str] = None,
            id_token_lifetime: Optional[str] = None,
            refresh_token_expiration: Optional[str] = None,
            refresh_token_idle_expiration: Optional[str] = None) -> DefaultOidcSettings
    func GetDefaultOidcSettings(ctx *Context, name string, id IDInput, state *DefaultOidcSettingsState, opts ...ResourceOption) (*DefaultOidcSettings, error)
    public static DefaultOidcSettings Get(string name, Input<string> id, DefaultOidcSettingsState? state, CustomResourceOptions? opts = null)
    public static DefaultOidcSettings get(String name, Output<String> id, DefaultOidcSettingsState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    AccessTokenLifetime string
    lifetime duration of access tokens
    IdTokenLifetime string
    lifetime duration of id tokens
    RefreshTokenExpiration string
    expiration duration of refresh tokens
    RefreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    AccessTokenLifetime string
    lifetime duration of access tokens
    IdTokenLifetime string
    lifetime duration of id tokens
    RefreshTokenExpiration string
    expiration duration of refresh tokens
    RefreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    accessTokenLifetime String
    lifetime duration of access tokens
    idTokenLifetime String
    lifetime duration of id tokens
    refreshTokenExpiration String
    expiration duration of refresh tokens
    refreshTokenIdleExpiration String
    expiration duration of idle refresh tokens
    accessTokenLifetime string
    lifetime duration of access tokens
    idTokenLifetime string
    lifetime duration of id tokens
    refreshTokenExpiration string
    expiration duration of refresh tokens
    refreshTokenIdleExpiration string
    expiration duration of idle refresh tokens
    access_token_lifetime str
    lifetime duration of access tokens
    id_token_lifetime str
    lifetime duration of id tokens
    refresh_token_expiration str
    expiration duration of refresh tokens
    refresh_token_idle_expiration str
    expiration duration of idle refresh tokens
    accessTokenLifetime String
    lifetime duration of access tokens
    idTokenLifetime String
    lifetime duration of id tokens
    refreshTokenExpiration String
    expiration duration of refresh tokens
    refreshTokenIdleExpiration String
    expiration duration of idle refresh tokens

    Package Details

    Repository
    zitadel pulumiverse/pulumi-zitadel
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the zitadel Terraform Provider.
    zitadel logo
    zitadel v0.1.7 published on Tuesday, Mar 26, 2024 by pulumiverse