okta.policy.Signon
Explore with Pulumi AI
Creates a Sign On Policy. This resource allows you to create and configure a Sign On Policy.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as okta from "@pulumi/okta";
const example = new okta.policy.Signon("example", {
name: "example",
status: "ACTIVE",
description: "Example",
groupsIncludeds: [everyone.id],
});
import pulumi
import pulumi_okta as okta
example = okta.policy.Signon("example",
name="example",
status="ACTIVE",
description="Example",
groups_includeds=[everyone["id"]])
package main
import (
"github.com/pulumi/pulumi-okta/sdk/v4/go/okta/policy"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := policy.NewSignon(ctx, "example", &policy.SignonArgs{
Name: pulumi.String("example"),
Status: pulumi.String("ACTIVE"),
Description: pulumi.String("Example"),
GroupsIncludeds: pulumi.StringArray{
everyone.Id,
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Okta = Pulumi.Okta;
return await Deployment.RunAsync(() =>
{
var example = new Okta.Policy.Signon("example", new()
{
Name = "example",
Status = "ACTIVE",
Description = "Example",
GroupsIncludeds = new[]
{
everyone.Id,
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.okta.policy.Signon;
import com.pulumi.okta.policy.SignonArgs;
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 example = new Signon("example", SignonArgs.builder()
.name("example")
.status("ACTIVE")
.description("Example")
.groupsIncludeds(everyone.id())
.build());
}
}
resources:
example:
type: okta:policy:Signon
properties:
name: example
status: ACTIVE
description: Example
groupsIncludeds:
- ${everyone.id}
Create Signon Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Signon(name: string, args?: SignonArgs, opts?: CustomResourceOptions);
@overload
def Signon(resource_name: str,
args: Optional[SignonArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def Signon(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
groups_includeds: Optional[Sequence[str]] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None)
func NewSignon(ctx *Context, name string, args *SignonArgs, opts ...ResourceOption) (*Signon, error)
public Signon(string name, SignonArgs? args = null, CustomResourceOptions? opts = null)
public Signon(String name, SignonArgs args)
public Signon(String name, SignonArgs args, CustomResourceOptions options)
type: okta:policy:Signon
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 SignonArgs
- 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 SignonArgs
- 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 SignonArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SignonArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SignonArgs
- 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 signonResource = new Okta.Policy.Signon("signonResource", new()
{
Description = "string",
GroupsIncludeds = new[]
{
"string",
},
Name = "string",
Priority = 0,
Status = "string",
});
example, err := policy.NewSignon(ctx, "signonResource", &policy.SignonArgs{
Description: pulumi.String("string"),
GroupsIncludeds: pulumi.StringArray{
pulumi.String("string"),
},
Name: pulumi.String("string"),
Priority: pulumi.Int(0),
Status: pulumi.String("string"),
})
var signonResource = new Signon("signonResource", SignonArgs.builder()
.description("string")
.groupsIncludeds("string")
.name("string")
.priority(0)
.status("string")
.build());
signon_resource = okta.policy.Signon("signonResource",
description="string",
groups_includeds=["string"],
name="string",
priority=0,
status="string")
const signonResource = new okta.policy.Signon("signonResource", {
description: "string",
groupsIncludeds: ["string"],
name: "string",
priority: 0,
status: "string",
});
type: okta:policy:Signon
properties:
description: string
groupsIncludeds:
- string
name: string
priority: 0
status: string
Signon 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 Signon resource accepts the following input properties:
- Description string
- Policy Description
- Groups
Includeds List<string> - List of Group IDs to Include
- Name string
- Policy Name
- Priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- Status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Description string
- Policy Description
- Groups
Includeds []string - List of Group IDs to Include
- Name string
- Policy Name
- Priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- Status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description String
- Policy Description
- groups
Includeds List<String> - List of Group IDs to Include
- name String
- Policy Name
- priority Integer
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status String
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description string
- Policy Description
- groups
Includeds string[] - List of Group IDs to Include
- name string
- Policy Name
- priority number
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description str
- Policy Description
- groups_
includeds Sequence[str] - List of Group IDs to Include
- name str
- Policy Name
- priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status str
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description String
- Policy Description
- groups
Includeds List<String> - List of Group IDs to Include
- name String
- Policy Name
- priority Number
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status String
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
Outputs
All input properties are implicitly available as output properties. Additionally, the Signon 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 Signon Resource
Get an existing Signon 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?: SignonState, opts?: CustomResourceOptions): Signon
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
groups_includeds: Optional[Sequence[str]] = None,
name: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None) -> Signon
func GetSignon(ctx *Context, name string, id IDInput, state *SignonState, opts ...ResourceOption) (*Signon, error)
public static Signon Get(string name, Input<string> id, SignonState? state, CustomResourceOptions? opts = null)
public static Signon get(String name, Output<String> id, SignonState 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.
- Description string
- Policy Description
- Groups
Includeds List<string> - List of Group IDs to Include
- Name string
- Policy Name
- Priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- Status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Description string
- Policy Description
- Groups
Includeds []string - List of Group IDs to Include
- Name string
- Policy Name
- Priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- Status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description String
- Policy Description
- groups
Includeds List<String> - List of Group IDs to Include
- name String
- Policy Name
- priority Integer
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status String
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description string
- Policy Description
- groups
Includeds string[] - List of Group IDs to Include
- name string
- Policy Name
- priority number
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status string
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description str
- Policy Description
- groups_
includeds Sequence[str] - List of Group IDs to Include
- name str
- Policy Name
- priority int
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status str
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- description String
- Policy Description
- groups
Includeds List<String> - List of Group IDs to Include
- name String
- Policy Name
- priority Number
- Policy Priority, this attribute can be set to a valid priority. To avoid endless diff situation we error if an invalid priority is provided. API defaults it to the last (lowest) if not there.
- status String
- Policy Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
Import
$ pulumi import okta:policy/signon:Signon example <policy_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Okta pulumi/pulumi-okta
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
okta
Terraform Provider.