okta.policy.RulePassword
Explore with Pulumi AI
Creates a Password Policy Rule. This resource allows you to create and configure a Password Policy Rule.
Create RulePassword Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RulePassword(name: string, args?: RulePasswordArgs, opts?: CustomResourceOptions);
@overload
def RulePassword(resource_name: str,
args: Optional[RulePasswordArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def RulePassword(resource_name: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
network_connection: Optional[str] = None,
network_excludes: Optional[Sequence[str]] = None,
network_includes: Optional[Sequence[str]] = None,
password_change: Optional[str] = None,
password_reset: Optional[str] = None,
password_unlock: Optional[str] = None,
policy_id: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None,
users_excludeds: Optional[Sequence[str]] = None)
func NewRulePassword(ctx *Context, name string, args *RulePasswordArgs, opts ...ResourceOption) (*RulePassword, error)
public RulePassword(string name, RulePasswordArgs? args = null, CustomResourceOptions? opts = null)
public RulePassword(String name, RulePasswordArgs args)
public RulePassword(String name, RulePasswordArgs args, CustomResourceOptions options)
type: okta:policy:RulePassword
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 RulePasswordArgs
- 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 RulePasswordArgs
- 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 RulePasswordArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RulePasswordArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RulePasswordArgs
- 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 rulePasswordResource = new Okta.Policy.RulePassword("rulePasswordResource", new()
{
Name = "string",
NetworkConnection = "string",
NetworkExcludes = new[]
{
"string",
},
NetworkIncludes = new[]
{
"string",
},
PasswordChange = "string",
PasswordReset = "string",
PasswordUnlock = "string",
PolicyId = "string",
Priority = 0,
Status = "string",
UsersExcludeds = new[]
{
"string",
},
});
example, err := policy.NewRulePassword(ctx, "rulePasswordResource", &policy.RulePasswordArgs{
Name: pulumi.String("string"),
NetworkConnection: pulumi.String("string"),
NetworkExcludes: pulumi.StringArray{
pulumi.String("string"),
},
NetworkIncludes: pulumi.StringArray{
pulumi.String("string"),
},
PasswordChange: pulumi.String("string"),
PasswordReset: pulumi.String("string"),
PasswordUnlock: pulumi.String("string"),
PolicyId: pulumi.String("string"),
Priority: pulumi.Int(0),
Status: pulumi.String("string"),
UsersExcludeds: pulumi.StringArray{
pulumi.String("string"),
},
})
var rulePasswordResource = new RulePassword("rulePasswordResource", RulePasswordArgs.builder()
.name("string")
.networkConnection("string")
.networkExcludes("string")
.networkIncludes("string")
.passwordChange("string")
.passwordReset("string")
.passwordUnlock("string")
.policyId("string")
.priority(0)
.status("string")
.usersExcludeds("string")
.build());
rule_password_resource = okta.policy.RulePassword("rulePasswordResource",
name="string",
network_connection="string",
network_excludes=["string"],
network_includes=["string"],
password_change="string",
password_reset="string",
password_unlock="string",
policy_id="string",
priority=0,
status="string",
users_excludeds=["string"])
const rulePasswordResource = new okta.policy.RulePassword("rulePasswordResource", {
name: "string",
networkConnection: "string",
networkExcludes: ["string"],
networkIncludes: ["string"],
passwordChange: "string",
passwordReset: "string",
passwordUnlock: "string",
policyId: "string",
priority: 0,
status: "string",
usersExcludeds: ["string"],
});
type: okta:policy:RulePassword
properties:
name: string
networkConnection: string
networkExcludes:
- string
networkIncludes:
- string
passwordChange: string
passwordReset: string
passwordUnlock: string
policyId: string
priority: 0
status: string
usersExcludeds:
- string
RulePassword 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 RulePassword resource accepts the following input properties:
- Name string
- Policy Rule Name
- Network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- Network
Excludes List<string> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - Network
Includes List<string> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - Password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- Policy
Id string - Policy ID of the Rule
- Priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- Status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Users
Excludeds List<string> - Set of User IDs to Exclude
- Name string
- Policy Rule Name
- Network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- Network
Excludes []string - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - Network
Includes []string - Required if
network_connection
=ZONE
. Indicates the network zones to include. - Password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- Policy
Id string - Policy ID of the Rule
- Priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- Status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Users
Excludeds []string - Set of User IDs to Exclude
- name String
- Policy Rule Name
- network
Connection String - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change String - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset String - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock String - Allow or deny a user to unlock. Default:
DENY
- policy
Id String - Policy ID of the Rule
- priority Integer
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status String
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds List<String> - Set of User IDs to Exclude
- name string
- Policy Rule Name
- network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes string[] - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes string[] - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- policy
Id string - Policy ID of the Rule
- priority number
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds string[] - Set of User IDs to Exclude
- name str
- Policy Rule Name
- network_
connection str - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network_
excludes Sequence[str] - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network_
includes Sequence[str] - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password_
change str - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password_
reset str - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password_
unlock str - Allow or deny a user to unlock. Default:
DENY
- policy_
id str - Policy ID of the Rule
- priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status str
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users_
excludeds Sequence[str] - Set of User IDs to Exclude
- name String
- Policy Rule Name
- network
Connection String - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change String - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset String - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock String - Allow or deny a user to unlock. Default:
DENY
- policy
Id String - Policy ID of the Rule
- priority Number
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status String
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds List<String> - Set of User IDs to Exclude
Outputs
All input properties are implicitly available as output properties. Additionally, the RulePassword 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 RulePassword Resource
Get an existing RulePassword 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?: RulePasswordState, opts?: CustomResourceOptions): RulePassword
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
name: Optional[str] = None,
network_connection: Optional[str] = None,
network_excludes: Optional[Sequence[str]] = None,
network_includes: Optional[Sequence[str]] = None,
password_change: Optional[str] = None,
password_reset: Optional[str] = None,
password_unlock: Optional[str] = None,
policy_id: Optional[str] = None,
priority: Optional[int] = None,
status: Optional[str] = None,
users_excludeds: Optional[Sequence[str]] = None) -> RulePassword
func GetRulePassword(ctx *Context, name string, id IDInput, state *RulePasswordState, opts ...ResourceOption) (*RulePassword, error)
public static RulePassword Get(string name, Input<string> id, RulePasswordState? state, CustomResourceOptions? opts = null)
public static RulePassword get(String name, Output<String> id, RulePasswordState 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.
- Name string
- Policy Rule Name
- Network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- Network
Excludes List<string> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - Network
Includes List<string> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - Password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- Policy
Id string - Policy ID of the Rule
- Priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- Status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Users
Excludeds List<string> - Set of User IDs to Exclude
- Name string
- Policy Rule Name
- Network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- Network
Excludes []string - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - Network
Includes []string - Required if
network_connection
=ZONE
. Indicates the network zones to include. - Password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- Password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- Policy
Id string - Policy ID of the Rule
- Priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- Status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- Users
Excludeds []string - Set of User IDs to Exclude
- name String
- Policy Rule Name
- network
Connection String - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change String - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset String - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock String - Allow or deny a user to unlock. Default:
DENY
- policy
Id String - Policy ID of the Rule
- priority Integer
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status String
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds List<String> - Set of User IDs to Exclude
- name string
- Policy Rule Name
- network
Connection string - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes string[] - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes string[] - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change string - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset string - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock string - Allow or deny a user to unlock. Default:
DENY
- policy
Id string - Policy ID of the Rule
- priority number
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status string
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds string[] - Set of User IDs to Exclude
- name str
- Policy Rule Name
- network_
connection str - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network_
excludes Sequence[str] - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network_
includes Sequence[str] - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password_
change str - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password_
reset str - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password_
unlock str - Allow or deny a user to unlock. Default:
DENY
- policy_
id str - Policy ID of the Rule
- priority int
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status str
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users_
excludeds Sequence[str] - Set of User IDs to Exclude
- name String
- Policy Rule Name
- network
Connection String - Network selection mode:
ANYWHERE
,ZONE
,ON_NETWORK
, orOFF_NETWORK
. Default:ANYWHERE
- network
Excludes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to exclude. - network
Includes List<String> - Required if
network_connection
=ZONE
. Indicates the network zones to include. - password
Change String - Allow or deny a user to change their password:
ALLOW
orDENY
. Default:ALLOW
- password
Reset String - Allow or deny a user to reset their password:
ALLOW
orDENY
. Default:ALLOW
- password
Unlock String - Allow or deny a user to unlock. Default:
DENY
- policy
Id String - Policy ID of the Rule
- priority Number
- Rule priority. This attribute can be set to a valid priority. To avoid an endless diff situation an error is thrown if an invalid property is provided. The Okta API defaults to the last (lowest) if not provided.
- status String
- Policy Rule Status:
ACTIVE
orINACTIVE
. Default:ACTIVE
- users
Excludeds List<String> - Set of User IDs to Exclude
Import
$ pulumi import okta:policy/rulePassword:RulePassword example <policy_id>/<rule_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.