1. Registry
  2. Packages
  3. Thoth
  4. API Docs
  5. governance
  6. OrgSecuritySettings
Viewing docs for Thoth v0.1.24
published on Thursday, Nov 5, 2026 by Aten Security
thoth logo Thoth
Viewing docs for Thoth v0.1.24
published on Thursday, Nov 5, 2026 by Aten Security

    Create OrgSecuritySettings Resource

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

    Constructor syntax

    new OrgSecuritySettings(name: string, args?: OrgSecuritySettingsArgs, opts?: CustomResourceOptions);
    @overload
    def OrgSecuritySettings(resource_name: str,
                            args: Optional[OrgSecuritySettingsArgs] = None,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def OrgSecuritySettings(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            ip_allowlists: Optional[Sequence[str]] = None,
                            require_mfa: Optional[bool] = None,
                            session_timeout_minutes: Optional[int] = None)
    func NewOrgSecuritySettings(ctx *Context, name string, args *OrgSecuritySettingsArgs, opts ...ResourceOption) (*OrgSecuritySettings, error)
    public OrgSecuritySettings(string name, OrgSecuritySettingsArgs? args = null, CustomResourceOptions? opts = null)
    public OrgSecuritySettings(String name, OrgSecuritySettingsArgs args)
    public OrgSecuritySettings(String name, OrgSecuritySettingsArgs args, CustomResourceOptions options)
    
    type: thoth:governance:OrgSecuritySettings
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "thoth_governance_org_security_settings" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args OrgSecuritySettingsArgs
    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 OrgSecuritySettingsArgs
    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 OrgSecuritySettingsArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args OrgSecuritySettingsArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args OrgSecuritySettingsArgs
    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 orgSecuritySettingsResource = new Thoth.Governance.OrgSecuritySettings("orgSecuritySettingsResource", new()
    {
        IpAllowlists = new[]
        {
            "string",
        },
        RequireMfa = false,
        SessionTimeoutMinutes = 0,
    });
    
    example, err := governance.NewOrgSecuritySettings(ctx, "orgSecuritySettingsResource", &governance.OrgSecuritySettingsArgs{
    	IpAllowlists: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	RequireMfa:            pulumi.Bool(false),
    	SessionTimeoutMinutes: pulumi.Int(0),
    })
    
    resource "thoth_governance_org_security_settings" "orgSecuritySettingsResource" {
      lifecycle {
        create_before_destroy = true
      }
      ip_allowlists           = ["string"]
      require_mfa             = false
      session_timeout_minutes = 0
    }
    
    var orgSecuritySettingsResource = new OrgSecuritySettings("orgSecuritySettingsResource", OrgSecuritySettingsArgs.builder()
        .ipAllowlists("string")
        .requireMfa(false)
        .sessionTimeoutMinutes(0)
        .build());
    
    org_security_settings_resource = thoth.governance.OrgSecuritySettings("orgSecuritySettingsResource",
        ip_allowlists=["string"],
        require_mfa=False,
        session_timeout_minutes=0)
    
    const orgSecuritySettingsResource = new thoth.governance.OrgSecuritySettings("orgSecuritySettingsResource", {
        ipAllowlists: ["string"],
        requireMfa: false,
        sessionTimeoutMinutes: 0,
    });
    
    type: thoth:governance:OrgSecuritySettings
    properties:
        ipAllowlists:
            - string
        requireMfa: false
        sessionTimeoutMinutes: 0
    

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

    IpAllowlists List<string>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    RequireMfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    SessionTimeoutMinutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    IpAllowlists []string
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    RequireMfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    SessionTimeoutMinutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    ip_allowlists list(string)
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    require_mfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    session_timeout_minutes number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    ipAllowlists List<String>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa Boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes Integer
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    ipAllowlists string[]
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    ip_allowlists Sequence[str]
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    require_mfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    session_timeout_minutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    ipAllowlists List<String>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa Boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes Number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the OrgSecuritySettings resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID resolved from provider configuration.
    UpdatedAt string
    Last update timestamp returned by GovAPI.
    UpdatedBy string
    Who last saved the policy, as GovAPI recorded it.
    Id string
    The provider-assigned unique ID for this managed resource.
    TenantId string
    Tenant ID resolved from provider configuration.
    UpdatedAt string
    Last update timestamp returned by GovAPI.
    UpdatedBy string
    Who last saved the policy, as GovAPI recorded it.
    id string
    The provider-assigned unique ID for this managed resource.
    tenant_id string
    Tenant ID resolved from provider configuration.
    updated_at string
    Last update timestamp returned by GovAPI.
    updated_by string
    Who last saved the policy, as GovAPI recorded it.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID resolved from provider configuration.
    updatedAt String
    Last update timestamp returned by GovAPI.
    updatedBy String
    Who last saved the policy, as GovAPI recorded it.
    id string
    The provider-assigned unique ID for this managed resource.
    tenantId string
    Tenant ID resolved from provider configuration.
    updatedAt string
    Last update timestamp returned by GovAPI.
    updatedBy string
    Who last saved the policy, as GovAPI recorded it.
    id str
    The provider-assigned unique ID for this managed resource.
    tenant_id str
    Tenant ID resolved from provider configuration.
    updated_at str
    Last update timestamp returned by GovAPI.
    updated_by str
    Who last saved the policy, as GovAPI recorded it.
    id String
    The provider-assigned unique ID for this managed resource.
    tenantId String
    Tenant ID resolved from provider configuration.
    updatedAt String
    Last update timestamp returned by GovAPI.
    updatedBy String
    Who last saved the policy, as GovAPI recorded it.

    Look up Existing OrgSecuritySettings Resource

    Get an existing OrgSecuritySettings 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?: OrgSecuritySettingsState, opts?: CustomResourceOptions): OrgSecuritySettings
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ip_allowlists: Optional[Sequence[str]] = None,
            require_mfa: Optional[bool] = None,
            session_timeout_minutes: Optional[int] = None,
            tenant_id: Optional[str] = None,
            updated_at: Optional[str] = None,
            updated_by: Optional[str] = None) -> OrgSecuritySettings
    func GetOrgSecuritySettings(ctx *Context, name string, id IDInput, state *OrgSecuritySettingsState, opts ...ResourceOption) (*OrgSecuritySettings, error)
    public static OrgSecuritySettings Get(string name, Input<string> id, OrgSecuritySettingsState? state, CustomResourceOptions? opts = null)
    public static OrgSecuritySettings get(String name, Output<String> id, OrgSecuritySettingsState state, CustomResourceOptions options)
    resources:  _:    type: thoth:governance:OrgSecuritySettings    get:      id: ${id}
    import {
      to = thoth_governance_org_security_settings.example
      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.
    The following state arguments are supported:
    IpAllowlists List<string>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    RequireMfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    SessionTimeoutMinutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    TenantId string
    Tenant ID resolved from provider configuration.
    UpdatedAt string
    Last update timestamp returned by GovAPI.
    UpdatedBy string
    Who last saved the policy, as GovAPI recorded it.
    IpAllowlists []string
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    RequireMfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    SessionTimeoutMinutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    TenantId string
    Tenant ID resolved from provider configuration.
    UpdatedAt string
    Last update timestamp returned by GovAPI.
    UpdatedBy string
    Who last saved the policy, as GovAPI recorded it.
    ip_allowlists list(string)
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    require_mfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    session_timeout_minutes number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    tenant_id string
    Tenant ID resolved from provider configuration.
    updated_at string
    Last update timestamp returned by GovAPI.
    updated_by string
    Who last saved the policy, as GovAPI recorded it.
    ipAllowlists List<String>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa Boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes Integer
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    tenantId String
    Tenant ID resolved from provider configuration.
    updatedAt String
    Last update timestamp returned by GovAPI.
    updatedBy String
    Who last saved the policy, as GovAPI recorded it.
    ipAllowlists string[]
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    tenantId string
    Tenant ID resolved from provider configuration.
    updatedAt string
    Last update timestamp returned by GovAPI.
    updatedBy string
    Who last saved the policy, as GovAPI recorded it.
    ip_allowlists Sequence[str]
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    require_mfa bool
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    session_timeout_minutes int
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    tenant_id str
    Tenant ID resolved from provider configuration.
    updated_at str
    Last update timestamp returned by GovAPI.
    updated_by str
    Who last saved the policy, as GovAPI recorded it.
    ipAllowlists List<String>
    CIDR ranges people and API keys may connect from, at most 100. Empty allows any network. Write each range in canonical form, such as 203.0.113.7/32 or 198.51.100.0/24. The list must include the address this Terraform run connects from, or GovAPI refuses it.
    requireMfa Boolean
    Require a second factor on every sign-in session (dashboard, thothctl and MCP). Sessions without one are asked to verify; API keys are not affected. Default false.
    sessionTimeoutMinutes Number
    How long a sign-in lasts before people must sign in again, from 15 to 43200 (30 days). It is an absolute lifetime, not an idle timeout. Default 720 (12 hours).
    tenantId String
    Tenant ID resolved from provider configuration.
    updatedAt String
    Last update timestamp returned by GovAPI.
    updatedBy String
    Who last saved the policy, as GovAPI recorded it.

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo Thoth
    Viewing docs for Thoth v0.1.24
    published on Thursday, Nov 5, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial