FusionAuth

Community
Package contributed by a community member
v0.9.7 published on Thursday, Jul 28, 2022 by Theo Gravity

FusionAuthSystemConfiguration

# System Configuration Resource

A registration is the association between a User and an Application that they log into.

System Configuration API

Example Usage

using Pulumi;
using Fusionauth = theogravity.Fusionauth;

class MyStack : Stack
{
    public MyStack()
    {
        var example = new Fusionauth.FusionAuthSystemConfiguration("example", new Fusionauth.FusionAuthSystemConfigurationArgs
        {
            AuditLogConfiguration = new Fusionauth.Inputs.FusionAuthSystemConfigurationAuditLogConfigurationArgs
            {
                Delete = new Fusionauth.Inputs.FusionAuthSystemConfigurationAuditLogConfigurationDeleteArgs
                {
                    Enabled = true,
                    NumberOfDaysToRetain = 367,
                },
            },
            CorsConfiguration = new Fusionauth.Inputs.FusionAuthSystemConfigurationCorsConfigurationArgs
            {
                AllowedMethods = 
                {
                    "POST",
                    "PUT",
                },
            },
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-fusionauth/sdk/go/fusionauth"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
	"github.com/theogravity/pulumi-fusionauth/sdk/go/fusionauth"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := fusionauth.NewFusionAuthSystemConfiguration(ctx, "example", &fusionauth.FusionAuthSystemConfigurationArgs{
			AuditLogConfiguration: &FusionAuthSystemConfigurationAuditLogConfigurationArgs{
				Delete: &FusionAuthSystemConfigurationAuditLogConfigurationDeleteArgs{
					Enabled:              pulumi.Bool(true),
					NumberOfDaysToRetain: pulumi.Int(367),
				},
			},
			CorsConfiguration: &FusionAuthSystemConfigurationCorsConfigurationArgs{
				AllowedMethods: pulumi.StringArray{
					pulumi.String("POST"),
					pulumi.String("PUT"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new FusionAuthSystemConfiguration("example", FusionAuthSystemConfigurationArgs.builder()        
            .auditLogConfiguration(FusionAuthSystemConfigurationAuditLogConfigurationArgs.builder()
                .delete(FusionAuthSystemConfigurationAuditLogConfigurationDeleteArgs.builder()
                    .enabled(true)
                    .numberOfDaysToRetain(367)
                    .build())
                .build())
            .corsConfiguration(FusionAuthSystemConfigurationCorsConfigurationArgs.builder()
                .allowedMethods(                
                    "POST",
                    "PUT")
                .build())
            .build());

    }
}
import pulumi
import theogravity_pulumi-fusionauth as fusionauth

example = fusionauth.FusionAuthSystemConfiguration("example",
    audit_log_configuration=fusionauth.FusionAuthSystemConfigurationAuditLogConfigurationArgs(
        delete=fusionauth.FusionAuthSystemConfigurationAuditLogConfigurationDeleteArgs(
            enabled=True,
            number_of_days_to_retain=367,
        ),
    ),
    cors_configuration=fusionauth.FusionAuthSystemConfigurationCorsConfigurationArgs(
        allowed_methods=[
            "POST",
            "PUT",
        ],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as fusionauth from "@pulumi/fusionauth";

const example = new fusionauth.FusionAuthSystemConfiguration("example", {
    auditLogConfiguration: {
        delete: {
            enabled: true,
            numberOfDaysToRetain: 367,
        },
    },
    corsConfiguration: {
        allowedMethods: [
            "POST",
            "PUT",
        ],
    },
});
resources:
  example:
    type: fusionauth:FusionAuthSystemConfiguration
    properties:
      auditLogConfiguration:
        delete:
          enabled: true
          numberOfDaysToRetain: 367
      corsConfiguration:
        allowedMethods:
          - POST
          - PUT

Create a FusionAuthSystemConfiguration Resource

new FusionAuthSystemConfiguration(name: string, args?: FusionAuthSystemConfigurationArgs, opts?: CustomResourceOptions);
@overload
def FusionAuthSystemConfiguration(resource_name: str,
                                  opts: Optional[ResourceOptions] = None,
                                  audit_log_configuration: Optional[FusionAuthSystemConfigurationAuditLogConfigurationArgs] = None,
                                  cors_configuration: Optional[FusionAuthSystemConfigurationCorsConfigurationArgs] = None,
                                  event_log_configuration: Optional[FusionAuthSystemConfigurationEventLogConfigurationArgs] = None,
                                  login_record_configuration: Optional[FusionAuthSystemConfigurationLoginRecordConfigurationArgs] = None,
                                  report_timezone: Optional[str] = None,
                                  ui_configuration: Optional[FusionAuthSystemConfigurationUiConfigurationArgs] = None)
@overload
def FusionAuthSystemConfiguration(resource_name: str,
                                  args: Optional[FusionAuthSystemConfigurationArgs] = None,
                                  opts: Optional[ResourceOptions] = None)
func NewFusionAuthSystemConfiguration(ctx *Context, name string, args *FusionAuthSystemConfigurationArgs, opts ...ResourceOption) (*FusionAuthSystemConfiguration, error)
public FusionAuthSystemConfiguration(string name, FusionAuthSystemConfigurationArgs? args = null, CustomResourceOptions? opts = null)
public FusionAuthSystemConfiguration(String name, FusionAuthSystemConfigurationArgs args)
public FusionAuthSystemConfiguration(String name, FusionAuthSystemConfigurationArgs args, CustomResourceOptions options)
type: fusionauth:FusionAuthSystemConfiguration
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FusionAuthSystemConfigurationArgs
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 FusionAuthSystemConfigurationArgs
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 FusionAuthSystemConfigurationArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FusionAuthSystemConfigurationArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FusionAuthSystemConfigurationArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FusionAuthSystemConfiguration 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 FusionAuthSystemConfiguration resource accepts the following input properties:

auditLogConfiguration Property Map
corsConfiguration Property Map
eventLogConfiguration Property Map
loginRecordConfiguration Property Map
reportTimezone String

The time zone used to adjust the stored UTC time when generating reports. Since reports are usually rolled up hourly, this timezone will be used for demarcating the hours.

uiConfiguration Property Map

Outputs

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

Get an existing FusionAuthSystemConfiguration 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?: FusionAuthSystemConfigurationState, opts?: CustomResourceOptions): FusionAuthSystemConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        audit_log_configuration: Optional[FusionAuthSystemConfigurationAuditLogConfigurationArgs] = None,
        cors_configuration: Optional[FusionAuthSystemConfigurationCorsConfigurationArgs] = None,
        event_log_configuration: Optional[FusionAuthSystemConfigurationEventLogConfigurationArgs] = None,
        login_record_configuration: Optional[FusionAuthSystemConfigurationLoginRecordConfigurationArgs] = None,
        report_timezone: Optional[str] = None,
        ui_configuration: Optional[FusionAuthSystemConfigurationUiConfigurationArgs] = None) -> FusionAuthSystemConfiguration
func GetFusionAuthSystemConfiguration(ctx *Context, name string, id IDInput, state *FusionAuthSystemConfigurationState, opts ...ResourceOption) (*FusionAuthSystemConfiguration, error)
public static FusionAuthSystemConfiguration Get(string name, Input<string> id, FusionAuthSystemConfigurationState? state, CustomResourceOptions? opts = null)
public static FusionAuthSystemConfiguration get(String name, Output<String> id, FusionAuthSystemConfigurationState 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:
auditLogConfiguration Property Map
corsConfiguration Property Map
eventLogConfiguration Property Map
loginRecordConfiguration Property Map
reportTimezone String

The time zone used to adjust the stored UTC time when generating reports. Since reports are usually rolled up hourly, this timezone will be used for demarcating the hours.

uiConfiguration Property Map

Supporting Types

FusionAuthSystemConfigurationAuditLogConfiguration

FusionAuthSystemConfigurationAuditLogConfigurationDelete

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

NumberOfDaysToRetain int

The number of days to retain login records.

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

NumberOfDaysToRetain int

The number of days to retain login records.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain Integer

The number of days to retain login records.

enabled boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain number

The number of days to retain login records.

enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

number_of_days_to_retain int

The number of days to retain login records.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain Number

The number of days to retain login records.

FusionAuthSystemConfigurationCorsConfiguration

AllowCredentials bool

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

AllowedHeaders List<string>

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

AllowedMethods List<string>

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

AllowedOrigins List<string>

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

ExposedHeaders List<string>

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

PreflightMaxAgeInSeconds int

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

AllowCredentials bool

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

AllowedHeaders []string

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

AllowedMethods []string

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

AllowedOrigins []string

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

ExposedHeaders []string

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

PreflightMaxAgeInSeconds int

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

allowCredentials Boolean

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

allowedHeaders List<String>

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

allowedMethods List<String>

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

allowedOrigins List<String>

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

exposedHeaders List<String>

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

preflightMaxAgeInSeconds Integer

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

allowCredentials boolean

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

allowedHeaders string[]

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

allowedMethods string[]

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

allowedOrigins string[]

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

enabled boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

exposedHeaders string[]

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

preflightMaxAgeInSeconds number

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

allow_credentials bool

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

allowed_headers Sequence[str]

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

allowed_methods Sequence[str]

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

allowed_origins Sequence[str]

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

exposed_headers Sequence[str]

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

preflight_max_age_in_seconds int

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

allowCredentials Boolean

The Access-Control-Allow-Credentials response header values as described by MDN Access-Control-Allow-Credentials.

allowedHeaders List<String>

The Access-Control-Allow-Headers response header values as described by MDN Access-Control-Allow-Headers.

allowedMethods List<String>

The Access-Control-Allow-Methods response header values as described by MDN Access-Control-Allow-Methods.

allowedOrigins List<String>

The Access-Control-Allow-Origin response header values as described by MDN Access-Control-Allow-Origin. If the wildcard * is specified, no additional domains may be specified.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

exposedHeaders List<String>

The Access-Control-Expose-Headers response header values as described by MDN Access-Control-Expose-Headers.

preflightMaxAgeInSeconds Number

The Access-Control-Max-Age response header values as described by MDN Access-Control-Max-Age.

FusionAuthSystemConfigurationEventLogConfiguration

NumberToRetain int

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

NumberToRetain int

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

numberToRetain Integer

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

numberToRetain number

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

number_to_retain int

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

numberToRetain Number

The number of events to retain. Once the the number of event logs exceeds this configured value they will be deleted starting with the oldest event logs.

FusionAuthSystemConfigurationLoginRecordConfiguration

FusionAuthSystemConfigurationLoginRecordConfigurationDelete

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

NumberOfDaysToRetain int

The number of days to retain login records.

Enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

NumberOfDaysToRetain int

The number of days to retain login records.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain Integer

The number of days to retain login records.

enabled boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain number

The number of days to retain login records.

enabled bool

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

number_of_days_to_retain int

The number of days to retain login records.

enabled Boolean

Whether or not FusionAuth should delete the login records based upon this configuration. When true the loginRecordConfiguration.delete.numberOfDaysToRetain will be used to identify login records that are eligible for deletion. When this value is set to false login records will be preserved forever.

numberOfDaysToRetain Number

The number of days to retain login records.

FusionAuthSystemConfigurationUiConfiguration

HeaderColor string

A hexadecimal color to override the default menu color in the user interface.

LogoUrl string

A URL of a logo to override the default FusionAuth logo in the user interface.

MenuFontColor string

A hexadecimal color to override the default menu font color in the user interface.

HeaderColor string

A hexadecimal color to override the default menu color in the user interface.

LogoUrl string

A URL of a logo to override the default FusionAuth logo in the user interface.

MenuFontColor string

A hexadecimal color to override the default menu font color in the user interface.

headerColor String

A hexadecimal color to override the default menu color in the user interface.

logoUrl String

A URL of a logo to override the default FusionAuth logo in the user interface.

menuFontColor String

A hexadecimal color to override the default menu font color in the user interface.

headerColor string

A hexadecimal color to override the default menu color in the user interface.

logoUrl string

A URL of a logo to override the default FusionAuth logo in the user interface.

menuFontColor string

A hexadecimal color to override the default menu font color in the user interface.

header_color str

A hexadecimal color to override the default menu color in the user interface.

logo_url str

A URL of a logo to override the default FusionAuth logo in the user interface.

menu_font_color str

A hexadecimal color to override the default menu font color in the user interface.

headerColor String

A hexadecimal color to override the default menu color in the user interface.

logoUrl String

A URL of a logo to override the default FusionAuth logo in the user interface.

menuFontColor String

A hexadecimal color to override the default menu font color in the user interface.

Package Details

Repository
https://github.com/theogravity/pulumi-fusionauth
License
MIT
Notes

This Pulumi package is based on the fusionauth Terraform Provider.