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.auth.inputs.ServerPolicyClaimState 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.auth.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
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 ServerPolicyClaimState extends com.pulumi.resources.ResourceArgs {
public static final ServerPolicyClaimState Empty = new ServerPolicyClaimState();
/**
* Lifetime of access token. Can be set to a value between 5 and 1440 minutes. Default is `60`.
*
*/
@Import(name="accessTokenLifetimeMinutes")
private @Nullable Output accessTokenLifetimeMinutes;
/**
* @return Lifetime of access token. Can be set to a value between 5 and 1440 minutes. Default is `60`.
*
*/
public Optional> accessTokenLifetimeMinutes() {
return Optional.ofNullable(this.accessTokenLifetimeMinutes);
}
/**
* Auth server ID
*
*/
@Import(name="authServerId")
private @Nullable Output authServerId;
/**
* @return Auth server ID
*
*/
public Optional> authServerId() {
return Optional.ofNullable(this.authServerId);
}
/**
* Accepted grant type values, `authorization_code`, `implicit`, `password`, `client_credentials`, `urn:ietf:params:oauth:grant-type:saml2-bearer` (*Early Access Property*), `urn:ietf:params:oauth:grant-type:token-exchange` (*Early Access Property*),`urn:ietf:params:oauth:grant-type:device_code` (*Early Access Property*), `interaction_code` (*OIE only*). For `implicit` value either `user_whitelist` or `group_whitelist` should be set.
*
*/
@Import(name="grantTypeWhitelists")
private @Nullable Output> grantTypeWhitelists;
/**
* @return Accepted grant type values, `authorization_code`, `implicit`, `password`, `client_credentials`, `urn:ietf:params:oauth:grant-type:saml2-bearer` (*Early Access Property*), `urn:ietf:params:oauth:grant-type:token-exchange` (*Early Access Property*),`urn:ietf:params:oauth:grant-type:device_code` (*Early Access Property*), `interaction_code` (*OIE only*). For `implicit` value either `user_whitelist` or `group_whitelist` should be set.
*
*/
public Optional>> grantTypeWhitelists() {
return Optional.ofNullable(this.grantTypeWhitelists);
}
/**
* Specifies a set of Groups whose Users are to be excluded.
*
*/
@Import(name="groupBlacklists")
private @Nullable Output> groupBlacklists;
/**
* @return Specifies a set of Groups whose Users are to be excluded.
*
*/
public Optional>> groupBlacklists() {
return Optional.ofNullable(this.groupBlacklists);
}
/**
* Specifies a set of Groups whose Users are to be included. Can be set to Group ID or to the following: `EVERYONE`.
*
*/
@Import(name="groupWhitelists")
private @Nullable Output> groupWhitelists;
/**
* @return Specifies a set of Groups whose Users are to be included. Can be set to Group ID or to the following: `EVERYONE`.
*
*/
public Optional>> groupWhitelists() {
return Optional.ofNullable(this.groupWhitelists);
}
/**
* The ID of the inline token to trigger.
*
*/
@Import(name="inlineHookId")
private @Nullable Output inlineHookId;
/**
* @return The ID of the inline token to trigger.
*
*/
public Optional> inlineHookId() {
return Optional.ofNullable(this.inlineHookId);
}
/**
* Auth server policy rule name
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return Auth server policy rule name
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* Auth server policy ID
*
*/
@Import(name="policyId")
private @Nullable Output policyId;
/**
* @return Auth server policy ID
*
*/
public Optional> policyId() {
return Optional.ofNullable(this.policyId);
}
/**
* Priority of the auth server policy rule
*
*/
@Import(name="priority")
private @Nullable Output priority;
/**
* @return Priority of the auth server policy rule
*
*/
public Optional> priority() {
return Optional.ofNullable(this.priority);
}
/**
* Lifetime of refresh token.
*
*/
@Import(name="refreshTokenLifetimeMinutes")
private @Nullable Output refreshTokenLifetimeMinutes;
/**
* @return Lifetime of refresh token.
*
*/
public Optional> refreshTokenLifetimeMinutes() {
return Optional.ofNullable(this.refreshTokenLifetimeMinutes);
}
/**
* Window in which a refresh token can be used. It can be a value between 5 and 2628000 (5 years) minutes. Default is `10080` (7 days).`refresh_token_window_minutes` must be between `access_token_lifetime_minutes` and `refresh_token_lifetime_minutes`.
*
*/
@Import(name="refreshTokenWindowMinutes")
private @Nullable Output refreshTokenWindowMinutes;
/**
* @return Window in which a refresh token can be used. It can be a value between 5 and 2628000 (5 years) minutes. Default is `10080` (7 days).`refresh_token_window_minutes` must be between `access_token_lifetime_minutes` and `refresh_token_lifetime_minutes`.
*
*/
public Optional> refreshTokenWindowMinutes() {
return Optional.ofNullable(this.refreshTokenWindowMinutes);
}
/**
* Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with `*`
*
*/
@Import(name="scopeWhitelists")
private @Nullable Output> scopeWhitelists;
/**
* @return Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with `*`
*
*/
public Optional>> scopeWhitelists() {
return Optional.ofNullable(this.scopeWhitelists);
}
/**
* Default to `ACTIVE`
*
*/
@Import(name="status")
private @Nullable Output status;
/**
* @return Default to `ACTIVE`
*
*/
public Optional> status() {
return Optional.ofNullable(this.status);
}
/**
* The rule is the system (default) rule for its associated policy
*
*/
@Import(name="system")
private @Nullable Output system;
/**
* @return The rule is the system (default) rule for its associated policy
*
*/
public Optional> system() {
return Optional.ofNullable(this.system);
}
/**
* Auth server policy rule type, unlikely this will be anything other then the default
*
*/
@Import(name="type")
private @Nullable Output type;
/**
* @return Auth server policy rule type, unlikely this will be anything other then the default
*
*/
public Optional> type() {
return Optional.ofNullable(this.type);
}
/**
* Specifies a set of Users to be excluded.
*
*/
@Import(name="userBlacklists")
private @Nullable Output> userBlacklists;
/**
* @return Specifies a set of Users to be excluded.
*
*/
public Optional>> userBlacklists() {
return Optional.ofNullable(this.userBlacklists);
}
/**
* Specifies a set of Users to be included.
*
*/
@Import(name="userWhitelists")
private @Nullable Output> userWhitelists;
/**
* @return Specifies a set of Users to be included.
*
*/
public Optional>> userWhitelists() {
return Optional.ofNullable(this.userWhitelists);
}
private ServerPolicyClaimState() {}
private ServerPolicyClaimState(ServerPolicyClaimState $) {
this.accessTokenLifetimeMinutes = $.accessTokenLifetimeMinutes;
this.authServerId = $.authServerId;
this.grantTypeWhitelists = $.grantTypeWhitelists;
this.groupBlacklists = $.groupBlacklists;
this.groupWhitelists = $.groupWhitelists;
this.inlineHookId = $.inlineHookId;
this.name = $.name;
this.policyId = $.policyId;
this.priority = $.priority;
this.refreshTokenLifetimeMinutes = $.refreshTokenLifetimeMinutes;
this.refreshTokenWindowMinutes = $.refreshTokenWindowMinutes;
this.scopeWhitelists = $.scopeWhitelists;
this.status = $.status;
this.system = $.system;
this.type = $.type;
this.userBlacklists = $.userBlacklists;
this.userWhitelists = $.userWhitelists;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServerPolicyClaimState defaults) {
return new Builder(defaults);
}
public static final class Builder {
private ServerPolicyClaimState $;
public Builder() {
$ = new ServerPolicyClaimState();
}
public Builder(ServerPolicyClaimState defaults) {
$ = new ServerPolicyClaimState(Objects.requireNonNull(defaults));
}
/**
* @param accessTokenLifetimeMinutes Lifetime of access token. Can be set to a value between 5 and 1440 minutes. Default is `60`.
*
* @return builder
*
*/
public Builder accessTokenLifetimeMinutes(@Nullable Output accessTokenLifetimeMinutes) {
$.accessTokenLifetimeMinutes = accessTokenLifetimeMinutes;
return this;
}
/**
* @param accessTokenLifetimeMinutes Lifetime of access token. Can be set to a value between 5 and 1440 minutes. Default is `60`.
*
* @return builder
*
*/
public Builder accessTokenLifetimeMinutes(Integer accessTokenLifetimeMinutes) {
return accessTokenLifetimeMinutes(Output.of(accessTokenLifetimeMinutes));
}
/**
* @param authServerId Auth server ID
*
* @return builder
*
*/
public Builder authServerId(@Nullable Output authServerId) {
$.authServerId = authServerId;
return this;
}
/**
* @param authServerId Auth server ID
*
* @return builder
*
*/
public Builder authServerId(String authServerId) {
return authServerId(Output.of(authServerId));
}
/**
* @param grantTypeWhitelists Accepted grant type values, `authorization_code`, `implicit`, `password`, `client_credentials`, `urn:ietf:params:oauth:grant-type:saml2-bearer` (*Early Access Property*), `urn:ietf:params:oauth:grant-type:token-exchange` (*Early Access Property*),`urn:ietf:params:oauth:grant-type:device_code` (*Early Access Property*), `interaction_code` (*OIE only*). For `implicit` value either `user_whitelist` or `group_whitelist` should be set.
*
* @return builder
*
*/
public Builder grantTypeWhitelists(@Nullable Output> grantTypeWhitelists) {
$.grantTypeWhitelists = grantTypeWhitelists;
return this;
}
/**
* @param grantTypeWhitelists Accepted grant type values, `authorization_code`, `implicit`, `password`, `client_credentials`, `urn:ietf:params:oauth:grant-type:saml2-bearer` (*Early Access Property*), `urn:ietf:params:oauth:grant-type:token-exchange` (*Early Access Property*),`urn:ietf:params:oauth:grant-type:device_code` (*Early Access Property*), `interaction_code` (*OIE only*). For `implicit` value either `user_whitelist` or `group_whitelist` should be set.
*
* @return builder
*
*/
public Builder grantTypeWhitelists(List grantTypeWhitelists) {
return grantTypeWhitelists(Output.of(grantTypeWhitelists));
}
/**
* @param grantTypeWhitelists Accepted grant type values, `authorization_code`, `implicit`, `password`, `client_credentials`, `urn:ietf:params:oauth:grant-type:saml2-bearer` (*Early Access Property*), `urn:ietf:params:oauth:grant-type:token-exchange` (*Early Access Property*),`urn:ietf:params:oauth:grant-type:device_code` (*Early Access Property*), `interaction_code` (*OIE only*). For `implicit` value either `user_whitelist` or `group_whitelist` should be set.
*
* @return builder
*
*/
public Builder grantTypeWhitelists(String... grantTypeWhitelists) {
return grantTypeWhitelists(List.of(grantTypeWhitelists));
}
/**
* @param groupBlacklists Specifies a set of Groups whose Users are to be excluded.
*
* @return builder
*
*/
public Builder groupBlacklists(@Nullable Output> groupBlacklists) {
$.groupBlacklists = groupBlacklists;
return this;
}
/**
* @param groupBlacklists Specifies a set of Groups whose Users are to be excluded.
*
* @return builder
*
*/
public Builder groupBlacklists(List groupBlacklists) {
return groupBlacklists(Output.of(groupBlacklists));
}
/**
* @param groupBlacklists Specifies a set of Groups whose Users are to be excluded.
*
* @return builder
*
*/
public Builder groupBlacklists(String... groupBlacklists) {
return groupBlacklists(List.of(groupBlacklists));
}
/**
* @param groupWhitelists Specifies a set of Groups whose Users are to be included. Can be set to Group ID or to the following: `EVERYONE`.
*
* @return builder
*
*/
public Builder groupWhitelists(@Nullable Output> groupWhitelists) {
$.groupWhitelists = groupWhitelists;
return this;
}
/**
* @param groupWhitelists Specifies a set of Groups whose Users are to be included. Can be set to Group ID or to the following: `EVERYONE`.
*
* @return builder
*
*/
public Builder groupWhitelists(List groupWhitelists) {
return groupWhitelists(Output.of(groupWhitelists));
}
/**
* @param groupWhitelists Specifies a set of Groups whose Users are to be included. Can be set to Group ID or to the following: `EVERYONE`.
*
* @return builder
*
*/
public Builder groupWhitelists(String... groupWhitelists) {
return groupWhitelists(List.of(groupWhitelists));
}
/**
* @param inlineHookId The ID of the inline token to trigger.
*
* @return builder
*
*/
public Builder inlineHookId(@Nullable Output inlineHookId) {
$.inlineHookId = inlineHookId;
return this;
}
/**
* @param inlineHookId The ID of the inline token to trigger.
*
* @return builder
*
*/
public Builder inlineHookId(String inlineHookId) {
return inlineHookId(Output.of(inlineHookId));
}
/**
* @param name Auth server policy rule name
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name Auth server policy rule name
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param policyId Auth server policy ID
*
* @return builder
*
*/
public Builder policyId(@Nullable Output policyId) {
$.policyId = policyId;
return this;
}
/**
* @param policyId Auth server policy ID
*
* @return builder
*
*/
public Builder policyId(String policyId) {
return policyId(Output.of(policyId));
}
/**
* @param priority Priority of the auth server policy rule
*
* @return builder
*
*/
public Builder priority(@Nullable Output priority) {
$.priority = priority;
return this;
}
/**
* @param priority Priority of the auth server policy rule
*
* @return builder
*
*/
public Builder priority(Integer priority) {
return priority(Output.of(priority));
}
/**
* @param refreshTokenLifetimeMinutes Lifetime of refresh token.
*
* @return builder
*
*/
public Builder refreshTokenLifetimeMinutes(@Nullable Output refreshTokenLifetimeMinutes) {
$.refreshTokenLifetimeMinutes = refreshTokenLifetimeMinutes;
return this;
}
/**
* @param refreshTokenLifetimeMinutes Lifetime of refresh token.
*
* @return builder
*
*/
public Builder refreshTokenLifetimeMinutes(Integer refreshTokenLifetimeMinutes) {
return refreshTokenLifetimeMinutes(Output.of(refreshTokenLifetimeMinutes));
}
/**
* @param refreshTokenWindowMinutes Window in which a refresh token can be used. It can be a value between 5 and 2628000 (5 years) minutes. Default is `10080` (7 days).`refresh_token_window_minutes` must be between `access_token_lifetime_minutes` and `refresh_token_lifetime_minutes`.
*
* @return builder
*
*/
public Builder refreshTokenWindowMinutes(@Nullable Output refreshTokenWindowMinutes) {
$.refreshTokenWindowMinutes = refreshTokenWindowMinutes;
return this;
}
/**
* @param refreshTokenWindowMinutes Window in which a refresh token can be used. It can be a value between 5 and 2628000 (5 years) minutes. Default is `10080` (7 days).`refresh_token_window_minutes` must be between `access_token_lifetime_minutes` and `refresh_token_lifetime_minutes`.
*
* @return builder
*
*/
public Builder refreshTokenWindowMinutes(Integer refreshTokenWindowMinutes) {
return refreshTokenWindowMinutes(Output.of(refreshTokenWindowMinutes));
}
/**
* @param scopeWhitelists Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with `*`
*
* @return builder
*
*/
public Builder scopeWhitelists(@Nullable Output> scopeWhitelists) {
$.scopeWhitelists = scopeWhitelists;
return this;
}
/**
* @param scopeWhitelists Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with `*`
*
* @return builder
*
*/
public Builder scopeWhitelists(List scopeWhitelists) {
return scopeWhitelists(Output.of(scopeWhitelists));
}
/**
* @param scopeWhitelists Scopes allowed for this policy rule. They can be whitelisted by name or all can be whitelisted with `*`
*
* @return builder
*
*/
public Builder scopeWhitelists(String... scopeWhitelists) {
return scopeWhitelists(List.of(scopeWhitelists));
}
/**
* @param status Default to `ACTIVE`
*
* @return builder
*
*/
public Builder status(@Nullable Output status) {
$.status = status;
return this;
}
/**
* @param status Default to `ACTIVE`
*
* @return builder
*
*/
public Builder status(String status) {
return status(Output.of(status));
}
/**
* @param system The rule is the system (default) rule for its associated policy
*
* @return builder
*
*/
public Builder system(@Nullable Output system) {
$.system = system;
return this;
}
/**
* @param system The rule is the system (default) rule for its associated policy
*
* @return builder
*
*/
public Builder system(Boolean system) {
return system(Output.of(system));
}
/**
* @param type Auth server policy rule type, unlikely this will be anything other then the default
*
* @return builder
*
*/
public Builder type(@Nullable Output type) {
$.type = type;
return this;
}
/**
* @param type Auth server policy rule type, unlikely this will be anything other then the default
*
* @return builder
*
*/
public Builder type(String type) {
return type(Output.of(type));
}
/**
* @param userBlacklists Specifies a set of Users to be excluded.
*
* @return builder
*
*/
public Builder userBlacklists(@Nullable Output> userBlacklists) {
$.userBlacklists = userBlacklists;
return this;
}
/**
* @param userBlacklists Specifies a set of Users to be excluded.
*
* @return builder
*
*/
public Builder userBlacklists(List userBlacklists) {
return userBlacklists(Output.of(userBlacklists));
}
/**
* @param userBlacklists Specifies a set of Users to be excluded.
*
* @return builder
*
*/
public Builder userBlacklists(String... userBlacklists) {
return userBlacklists(List.of(userBlacklists));
}
/**
* @param userWhitelists Specifies a set of Users to be included.
*
* @return builder
*
*/
public Builder userWhitelists(@Nullable Output> userWhitelists) {
$.userWhitelists = userWhitelists;
return this;
}
/**
* @param userWhitelists Specifies a set of Users to be included.
*
* @return builder
*
*/
public Builder userWhitelists(List userWhitelists) {
return userWhitelists(Output.of(userWhitelists));
}
/**
* @param userWhitelists Specifies a set of Users to be included.
*
* @return builder
*
*/
public Builder userWhitelists(String... userWhitelists) {
return userWhitelists(List.of(userWhitelists));
}
public ServerPolicyClaimState build() {
return $;
}
}
}