Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.okta.inputs.AppSignonPolicyRuleState Maven / Gradle / Ivy
Go to download
A Pulumi package for creating and managing okta resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.okta.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.okta.inputs.AppSignonPolicyRulePlatformIncludeArgs;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class AppSignonPolicyRuleState extends com.pulumi.resources.ResourceArgs {
public static final AppSignonPolicyRuleState Empty = new AppSignonPolicyRuleState();
/**
* Allow or deny access based on the rule conditions: ALLOW or DENY
*
*/
@Import(name="access")
private @Nullable Output access;
/**
* @return Allow or deny access based on the rule conditions: ALLOW or DENY
*
*/
public Optional> access() {
return Optional.ofNullable(this.access);
}
/**
* An array that contains nested Authenticator Constraint objects that are organized by the Authenticator class
*
*/
@Import(name="constraints")
private @Nullable Output> constraints;
/**
* @return An array that contains nested Authenticator Constraint objects that are organized by the Authenticator class
*
*/
public Optional>> constraints() {
return Optional.ofNullable(this.constraints);
}
/**
* This is an optional advanced setting. If the expression is formatted incorrectly or conflicts with conditions set above, the rule may not match any users.
*
*/
@Import(name="customExpression")
private @Nullable Output customExpression;
/**
* @return This is an optional advanced setting. If the expression is formatted incorrectly or conflicts with conditions set above, the rule may not match any users.
*
*/
public Optional> customExpression() {
return Optional.ofNullable(this.customExpression);
}
/**
* List of device assurance IDs to include
*
*/
@Import(name="deviceAssurancesIncludeds")
private @Nullable Output> deviceAssurancesIncludeds;
/**
* @return List of device assurance IDs to include
*
*/
public Optional>> deviceAssurancesIncludeds() {
return Optional.ofNullable(this.deviceAssurancesIncludeds);
}
/**
* If the device is managed. A device is managed if it's managed by a device management system. When managed is passed, registered must also be included and must be set to true.
*
*/
@Import(name="deviceIsManaged")
private @Nullable Output deviceIsManaged;
/**
* @return If the device is managed. A device is managed if it's managed by a device management system. When managed is passed, registered must also be included and must be set to true.
*
*/
public Optional> deviceIsManaged() {
return Optional.ofNullable(this.deviceIsManaged);
}
/**
* If the device is registered. A device is registered if the User enrolls with Okta Verify that is installed on the device.
*
*/
@Import(name="deviceIsRegistered")
private @Nullable Output deviceIsRegistered;
/**
* @return If the device is registered. A device is registered if the User enrolls with Okta Verify that is installed on the device.
*
*/
public Optional> deviceIsRegistered() {
return Optional.ofNullable(this.deviceIsRegistered);
}
/**
* The number of factors required to satisfy this assurance level
*
*/
@Import(name="factorMode")
private @Nullable Output factorMode;
/**
* @return The number of factors required to satisfy this assurance level
*
*/
public Optional> factorMode() {
return Optional.ofNullable(this.factorMode);
}
/**
* List of group IDs to exclude
*
*/
@Import(name="groupsExcludeds")
private @Nullable Output> groupsExcludeds;
/**
* @return List of group IDs to exclude
*
*/
public Optional>> groupsExcludeds() {
return Optional.ofNullable(this.groupsExcludeds);
}
/**
* List of group IDs to include
*
*/
@Import(name="groupsIncludeds")
private @Nullable Output> groupsIncludeds;
/**
* @return List of group IDs to include
*
*/
public Optional>> groupsIncludeds() {
return Optional.ofNullable(this.groupsIncludeds);
}
/**
* The inactivity duration after which the end user must re-authenticate. Use the ISO 8601 Period format for recurring time intervals.
*
*/
@Import(name="inactivityPeriod")
private @Nullable Output inactivityPeriod;
/**
* @return The inactivity duration after which the end user must re-authenticate. Use the ISO 8601 Period format for recurring time intervals.
*
*/
public Optional> inactivityPeriod() {
return Optional.ofNullable(this.inactivityPeriod);
}
/**
* Policy Rule Name
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Policy Rule Name
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Network selection mode: ANYWHERE, ZONE, ON*NETWORK, or OFF*NETWORK.
*
*/
@Import(name="networkConnection")
private @Nullable Output networkConnection;
/**
* @return Network selection mode: ANYWHERE, ZONE, ON*NETWORK, or OFF*NETWORK.
*
*/
public Optional> networkConnection() {
return Optional.ofNullable(this.networkConnection);
}
/**
* The zones to exclude
*
*/
@Import(name="networkExcludes")
private @Nullable Output> networkExcludes;
/**
* @return The zones to exclude
*
*/
public Optional>> networkExcludes() {
return Optional.ofNullable(this.networkExcludes);
}
/**
* The zones to include
*
*/
@Import(name="networkIncludes")
private @Nullable Output> networkIncludes;
/**
* @return The zones to include
*
*/
public Optional>> networkIncludes() {
return Optional.ofNullable(this.networkIncludes);
}
@Import(name="platformIncludes")
private @Nullable Output> platformIncludes;
public Optional>> platformIncludes() {
return Optional.ofNullable(this.platformIncludes);
}
/**
* ID of the policy
*
*/
@Import(name="policyId")
private @Nullable Output policyId;
/**
* @return ID of the policy
*
*/
public Optional> policyId() {
return Optional.ofNullable(this.policyId);
}
/**
* Priority of the rule.
*
*/
@Import(name="priority")
private @Nullable Output priority;
/**
* @return Priority of the rule.
*
*/
public Optional> priority() {
return Optional.ofNullable(this.priority);
}
/**
* The duration after which the end user must re-authenticate, regardless of user activity. Use the ISO 8601 Period format for recurring time intervals. PT0S - Every sign-in attempt, PT43800H - Once per session
*
*/
@Import(name="reAuthenticationFrequency")
private @Nullable Output reAuthenticationFrequency;
/**
* @return The duration after which the end user must re-authenticate, regardless of user activity. Use the ISO 8601 Period format for recurring time intervals. PT0S - Every sign-in attempt, PT43800H - Once per session
*
*/
public Optional> reAuthenticationFrequency() {
return Optional.ofNullable(this.reAuthenticationFrequency);
}
/**
* The risk score specifies a particular level of risk to match on: ANY, LOW, MEDIUM, HIGH
*
*/
@Import(name="riskScore")
private @Nullable Output riskScore;
/**
* @return The risk score specifies a particular level of risk to match on: ANY, LOW, MEDIUM, HIGH
*
*/
public Optional> riskScore() {
return Optional.ofNullable(this.riskScore);
}
/**
* Status of the rule
*
*/
@Import(name="status")
private @Nullable Output status;
/**
* @return Status of the rule
*
*/
public Optional> status() {
return Optional.ofNullable(this.status);
}
/**
* Often the `Catch-all Rule` this rule is the system (default) rule for its associated policy
*
*/
@Import(name="system")
private @Nullable Output system;
/**
* @return Often the `Catch-all Rule` this rule is the system (default) rule for its associated policy
*
*/
public Optional> system() {
return Optional.ofNullable(this.system);
}
/**
* The Verification Method type
*
*/
@Import(name="type")
private @Nullable Output type;
/**
* @return The Verification Method type
*
*/
public Optional> type() {
return Optional.ofNullable(this.type);
}
/**
* Set of User Type IDs to exclude
*
*/
@Import(name="userTypesExcludeds")
private @Nullable Output> userTypesExcludeds;
/**
* @return Set of User Type IDs to exclude
*
*/
public Optional>> userTypesExcludeds() {
return Optional.ofNullable(this.userTypesExcludeds);
}
/**
* Set of User Type IDs to include
*
*/
@Import(name="userTypesIncludeds")
private @Nullable Output> userTypesIncludeds;
/**
* @return Set of User Type IDs to include
*
*/
public Optional>> userTypesIncludeds() {
return Optional.ofNullable(this.userTypesIncludeds);
}
/**
* Set of User IDs to exclude
*
*/
@Import(name="usersExcludeds")
private @Nullable Output> usersExcludeds;
/**
* @return Set of User IDs to exclude
*
*/
public Optional>> usersExcludeds() {
return Optional.ofNullable(this.usersExcludeds);
}
/**
* Set of User IDs to include
*
*/
@Import(name="usersIncludeds")
private @Nullable Output> usersIncludeds;
/**
* @return Set of User IDs to include
*
*/
public Optional>> usersIncludeds() {
return Optional.ofNullable(this.usersIncludeds);
}
private AppSignonPolicyRuleState() {}
private AppSignonPolicyRuleState(AppSignonPolicyRuleState $) {
this.access = $.access;
this.constraints = $.constraints;
this.customExpression = $.customExpression;
this.deviceAssurancesIncludeds = $.deviceAssurancesIncludeds;
this.deviceIsManaged = $.deviceIsManaged;
this.deviceIsRegistered = $.deviceIsRegistered;
this.factorMode = $.factorMode;
this.groupsExcludeds = $.groupsExcludeds;
this.groupsIncludeds = $.groupsIncludeds;
this.inactivityPeriod = $.inactivityPeriod;
this.name = $.name;
this.networkConnection = $.networkConnection;
this.networkExcludes = $.networkExcludes;
this.networkIncludes = $.networkIncludes;
this.platformIncludes = $.platformIncludes;
this.policyId = $.policyId;
this.priority = $.priority;
this.reAuthenticationFrequency = $.reAuthenticationFrequency;
this.riskScore = $.riskScore;
this.status = $.status;
this.system = $.system;
this.type = $.type;
this.userTypesExcludeds = $.userTypesExcludeds;
this.userTypesIncludeds = $.userTypesIncludeds;
this.usersExcludeds = $.usersExcludeds;
this.usersIncludeds = $.usersIncludeds;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AppSignonPolicyRuleState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private AppSignonPolicyRuleState $;
public Builder() {
$ = new AppSignonPolicyRuleState();
}
public Builder(AppSignonPolicyRuleState defaults) {
$ = new AppSignonPolicyRuleState(Objects.requireNonNull(defaults));
}
/**
* @param access Allow or deny access based on the rule conditions: ALLOW or DENY
*
* @return builder
*
*/
public Builder access(@Nullable Output access) {
$.access = access;
return this;
}
/**
* @param access Allow or deny access based on the rule conditions: ALLOW or DENY
*
* @return builder
*
*/
public Builder access(String access) {
return access(Output.of(access));
}
/**
* @param constraints An array that contains nested Authenticator Constraint objects that are organized by the Authenticator class
*
* @return builder
*
*/
public Builder constraints(@Nullable Output> constraints) {
$.constraints = constraints;
return this;
}
/**
* @param constraints An array that contains nested Authenticator Constraint objects that are organized by the Authenticator class
*
* @return builder
*
*/
public Builder constraints(List constraints) {
return constraints(Output.of(constraints));
}
/**
* @param constraints An array that contains nested Authenticator Constraint objects that are organized by the Authenticator class
*
* @return builder
*
*/
public Builder constraints(String... constraints) {
return constraints(List.of(constraints));
}
/**
* @param customExpression This is an optional advanced setting. If the expression is formatted incorrectly or conflicts with conditions set above, the rule may not match any users.
*
* @return builder
*
*/
public Builder customExpression(@Nullable Output customExpression) {
$.customExpression = customExpression;
return this;
}
/**
* @param customExpression This is an optional advanced setting. If the expression is formatted incorrectly or conflicts with conditions set above, the rule may not match any users.
*
* @return builder
*
*/
public Builder customExpression(String customExpression) {
return customExpression(Output.of(customExpression));
}
/**
* @param deviceAssurancesIncludeds List of device assurance IDs to include
*
* @return builder
*
*/
public Builder deviceAssurancesIncludeds(@Nullable Output> deviceAssurancesIncludeds) {
$.deviceAssurancesIncludeds = deviceAssurancesIncludeds;
return this;
}
/**
* @param deviceAssurancesIncludeds List of device assurance IDs to include
*
* @return builder
*
*/
public Builder deviceAssurancesIncludeds(List deviceAssurancesIncludeds) {
return deviceAssurancesIncludeds(Output.of(deviceAssurancesIncludeds));
}
/**
* @param deviceAssurancesIncludeds List of device assurance IDs to include
*
* @return builder
*
*/
public Builder deviceAssurancesIncludeds(String... deviceAssurancesIncludeds) {
return deviceAssurancesIncludeds(List.of(deviceAssurancesIncludeds));
}
/**
* @param deviceIsManaged If the device is managed. A device is managed if it's managed by a device management system. When managed is passed, registered must also be included and must be set to true.
*
* @return builder
*
*/
public Builder deviceIsManaged(@Nullable Output deviceIsManaged) {
$.deviceIsManaged = deviceIsManaged;
return this;
}
/**
* @param deviceIsManaged If the device is managed. A device is managed if it's managed by a device management system. When managed is passed, registered must also be included and must be set to true.
*
* @return builder
*
*/
public Builder deviceIsManaged(Boolean deviceIsManaged) {
return deviceIsManaged(Output.of(deviceIsManaged));
}
/**
* @param deviceIsRegistered If the device is registered. A device is registered if the User enrolls with Okta Verify that is installed on the device.
*
* @return builder
*
*/
public Builder deviceIsRegistered(@Nullable Output deviceIsRegistered) {
$.deviceIsRegistered = deviceIsRegistered;
return this;
}
/**
* @param deviceIsRegistered If the device is registered. A device is registered if the User enrolls with Okta Verify that is installed on the device.
*
* @return builder
*
*/
public Builder deviceIsRegistered(Boolean deviceIsRegistered) {
return deviceIsRegistered(Output.of(deviceIsRegistered));
}
/**
* @param factorMode The number of factors required to satisfy this assurance level
*
* @return builder
*
*/
public Builder factorMode(@Nullable Output factorMode) {
$.factorMode = factorMode;
return this;
}
/**
* @param factorMode The number of factors required to satisfy this assurance level
*
* @return builder
*
*/
public Builder factorMode(String factorMode) {
return factorMode(Output.of(factorMode));
}
/**
* @param groupsExcludeds List of group IDs to exclude
*
* @return builder
*
*/
public Builder groupsExcludeds(@Nullable Output> groupsExcludeds) {
$.groupsExcludeds = groupsExcludeds;
return this;
}
/**
* @param groupsExcludeds List of group IDs to exclude
*
* @return builder
*
*/
public Builder groupsExcludeds(List groupsExcludeds) {
return groupsExcludeds(Output.of(groupsExcludeds));
}
/**
* @param groupsExcludeds List of group IDs to exclude
*
* @return builder
*
*/
public Builder groupsExcludeds(String... groupsExcludeds) {
return groupsExcludeds(List.of(groupsExcludeds));
}
/**
* @param groupsIncludeds List of group IDs to include
*
* @return builder
*
*/
public Builder groupsIncludeds(@Nullable Output> groupsIncludeds) {
$.groupsIncludeds = groupsIncludeds;
return this;
}
/**
* @param groupsIncludeds List of group IDs to include
*
* @return builder
*
*/
public Builder groupsIncludeds(List groupsIncludeds) {
return groupsIncludeds(Output.of(groupsIncludeds));
}
/**
* @param groupsIncludeds List of group IDs to include
*
* @return builder
*
*/
public Builder groupsIncludeds(String... groupsIncludeds) {
return groupsIncludeds(List.of(groupsIncludeds));
}
/**
* @param inactivityPeriod The inactivity duration after which the end user must re-authenticate. Use the ISO 8601 Period format for recurring time intervals.
*
* @return builder
*
*/
public Builder inactivityPeriod(@Nullable Output inactivityPeriod) {
$.inactivityPeriod = inactivityPeriod;
return this;
}
/**
* @param inactivityPeriod The inactivity duration after which the end user must re-authenticate. Use the ISO 8601 Period format for recurring time intervals.
*
* @return builder
*
*/
public Builder inactivityPeriod(String inactivityPeriod) {
return inactivityPeriod(Output.of(inactivityPeriod));
}
/**
* @param name Policy Rule Name
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Policy Rule Name
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param networkConnection Network selection mode: ANYWHERE, ZONE, ON*NETWORK, or OFF*NETWORK.
*
* @return builder
*
*/
public Builder networkConnection(@Nullable Output networkConnection) {
$.networkConnection = networkConnection;
return this;
}
/**
* @param networkConnection Network selection mode: ANYWHERE, ZONE, ON*NETWORK, or OFF*NETWORK.
*
* @return builder
*
*/
public Builder networkConnection(String networkConnection) {
return networkConnection(Output.of(networkConnection));
}
/**
* @param networkExcludes The zones to exclude
*
* @return builder
*
*/
public Builder networkExcludes(@Nullable Output> networkExcludes) {
$.networkExcludes = networkExcludes;
return this;
}
/**
* @param networkExcludes The zones to exclude
*
* @return builder
*
*/
public Builder networkExcludes(List networkExcludes) {
return networkExcludes(Output.of(networkExcludes));
}
/**
* @param networkExcludes The zones to exclude
*
* @return builder
*
*/
public Builder networkExcludes(String... networkExcludes) {
return networkExcludes(List.of(networkExcludes));
}
/**
* @param networkIncludes The zones to include
*
* @return builder
*
*/
public Builder networkIncludes(@Nullable Output> networkIncludes) {
$.networkIncludes = networkIncludes;
return this;
}
/**
* @param networkIncludes The zones to include
*
* @return builder
*
*/
public Builder networkIncludes(List networkIncludes) {
return networkIncludes(Output.of(networkIncludes));
}
/**
* @param networkIncludes The zones to include
*
* @return builder
*
*/
public Builder networkIncludes(String... networkIncludes) {
return networkIncludes(List.of(networkIncludes));
}
public Builder platformIncludes(@Nullable Output> platformIncludes) {
$.platformIncludes = platformIncludes;
return this;
}
public Builder platformIncludes(List platformIncludes) {
return platformIncludes(Output.of(platformIncludes));
}
public Builder platformIncludes(AppSignonPolicyRulePlatformIncludeArgs... platformIncludes) {
return platformIncludes(List.of(platformIncludes));
}
/**
* @param policyId ID of the policy
*
* @return builder
*
*/
public Builder policyId(@Nullable Output policyId) {
$.policyId = policyId;
return this;
}
/**
* @param policyId ID of the policy
*
* @return builder
*
*/
public Builder policyId(String policyId) {
return policyId(Output.of(policyId));
}
/**
* @param priority Priority of the rule.
*
* @return builder
*
*/
public Builder priority(@Nullable Output priority) {
$.priority = priority;
return this;
}
/**
* @param priority Priority of the rule.
*
* @return builder
*
*/
public Builder priority(Integer priority) {
return priority(Output.of(priority));
}
/**
* @param reAuthenticationFrequency The duration after which the end user must re-authenticate, regardless of user activity. Use the ISO 8601 Period format for recurring time intervals. PT0S - Every sign-in attempt, PT43800H - Once per session
*
* @return builder
*
*/
public Builder reAuthenticationFrequency(@Nullable Output reAuthenticationFrequency) {
$.reAuthenticationFrequency = reAuthenticationFrequency;
return this;
}
/**
* @param reAuthenticationFrequency The duration after which the end user must re-authenticate, regardless of user activity. Use the ISO 8601 Period format for recurring time intervals. PT0S - Every sign-in attempt, PT43800H - Once per session
*
* @return builder
*
*/
public Builder reAuthenticationFrequency(String reAuthenticationFrequency) {
return reAuthenticationFrequency(Output.of(reAuthenticationFrequency));
}
/**
* @param riskScore The risk score specifies a particular level of risk to match on: ANY, LOW, MEDIUM, HIGH
*
* @return builder
*
*/
public Builder riskScore(@Nullable Output riskScore) {
$.riskScore = riskScore;
return this;
}
/**
* @param riskScore The risk score specifies a particular level of risk to match on: ANY, LOW, MEDIUM, HIGH
*
* @return builder
*
*/
public Builder riskScore(String riskScore) {
return riskScore(Output.of(riskScore));
}
/**
* @param status Status of the rule
*
* @return builder
*
*/
public Builder status(@Nullable Output status) {
$.status = status;
return this;
}
/**
* @param status Status of the rule
*
* @return builder
*
*/
public Builder status(String status) {
return status(Output.of(status));
}
/**
* @param system Often the `Catch-all Rule` this rule is the system (default) rule for its associated policy
*
* @return builder
*
*/
public Builder system(@Nullable Output system) {
$.system = system;
return this;
}
/**
* @param system Often the `Catch-all Rule` this rule is the system (default) rule for its associated policy
*
* @return builder
*
*/
public Builder system(Boolean system) {
return system(Output.of(system));
}
/**
* @param type The Verification Method type
*
* @return builder
*
*/
public Builder type(@Nullable Output type) {
$.type = type;
return this;
}
/**
* @param type The Verification Method type
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param userTypesExcludeds Set of User Type IDs to exclude
*
* @return builder
*
*/
public Builder userTypesExcludeds(@Nullable Output> userTypesExcludeds) {
$.userTypesExcludeds = userTypesExcludeds;
return this;
}
/**
* @param userTypesExcludeds Set of User Type IDs to exclude
*
* @return builder
*
*/
public Builder userTypesExcludeds(List userTypesExcludeds) {
return userTypesExcludeds(Output.of(userTypesExcludeds));
}
/**
* @param userTypesExcludeds Set of User Type IDs to exclude
*
* @return builder
*
*/
public Builder userTypesExcludeds(String... userTypesExcludeds) {
return userTypesExcludeds(List.of(userTypesExcludeds));
}
/**
* @param userTypesIncludeds Set of User Type IDs to include
*
* @return builder
*
*/
public Builder userTypesIncludeds(@Nullable Output> userTypesIncludeds) {
$.userTypesIncludeds = userTypesIncludeds;
return this;
}
/**
* @param userTypesIncludeds Set of User Type IDs to include
*
* @return builder
*
*/
public Builder userTypesIncludeds(List userTypesIncludeds) {
return userTypesIncludeds(Output.of(userTypesIncludeds));
}
/**
* @param userTypesIncludeds Set of User Type IDs to include
*
* @return builder
*
*/
public Builder userTypesIncludeds(String... userTypesIncludeds) {
return userTypesIncludeds(List.of(userTypesIncludeds));
}
/**
* @param usersExcludeds Set of User IDs to exclude
*
* @return builder
*
*/
public Builder usersExcludeds(@Nullable Output> usersExcludeds) {
$.usersExcludeds = usersExcludeds;
return this;
}
/**
* @param usersExcludeds Set of User IDs to exclude
*
* @return builder
*
*/
public Builder usersExcludeds(List usersExcludeds) {
return usersExcludeds(Output.of(usersExcludeds));
}
/**
* @param usersExcludeds Set of User IDs to exclude
*
* @return builder
*
*/
public Builder usersExcludeds(String... usersExcludeds) {
return usersExcludeds(List.of(usersExcludeds));
}
/**
* @param usersIncludeds Set of User IDs to include
*
* @return builder
*
*/
public Builder usersIncludeds(@Nullable Output> usersIncludeds) {
$.usersIncludeds = usersIncludeds;
return this;
}
/**
* @param usersIncludeds Set of User IDs to include
*
* @return builder
*
*/
public Builder usersIncludeds(List usersIncludeds) {
return usersIncludeds(Output.of(usersIncludeds));
}
/**
* @param usersIncludeds Set of User IDs to include
*
* @return builder
*
*/
public Builder usersIncludeds(String... usersIncludeds) {
return usersIncludeds(List.of(usersIncludeds));
}
public AppSignonPolicyRuleState build() {
return $;
}
}
}