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.PolicyMfaDefault Maven / Gradle / Ivy
// *** 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;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import com.pulumi.okta.PolicyMfaDefaultArgs;
import com.pulumi.okta.Utilities;
import com.pulumi.okta.inputs.PolicyMfaDefaultState;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* Configures default MFA Policy.
* This resource allows you to configure default MFA Policy.
* > Requires Org Feature Flag 'OKTA_MFA_POLICY'. Contact support to have this feature flag ***enabled***.
* Unless Org Feature Flag 'ENG_ENABLE_OPTIONAL_PASSWORD_ENROLLMENT' is ***disabled*** 'okta_password' or 'okta_email' must be present and its 'enroll' value set to 'REQUIRED'. Contact support to have this feature flag ***disabled***.
*
* ## Example Usage
*
* <!--Start PulumiCodeChooser -->
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.okta.PolicyMfaDefault;
* import com.pulumi.okta.PolicyMfaDefaultArgs;
* 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 classicExample = new PolicyMfaDefault("classicExample", PolicyMfaDefaultArgs.builder()
* .isOie(false)
* .oktaPassword(Map.of("enroll", "REQUIRED"))
* .oktaOtp(Map.of("enroll", "REQUIRED"))
* .build());
*
* var oieExample = new PolicyMfaDefault("oieExample", PolicyMfaDefaultArgs.builder()
* .isOie(true)
* .oktaPassword(Map.of("enroll", "REQUIRED"))
* .oktaVerify(Map.of("enroll", "REQUIRED"))
* .build());
*
* }
* }
* }
*
* <!--End PulumiCodeChooser -->
*
* ## Import
*
* ```sh
* $ pulumi import okta:index/policyMfaDefault:PolicyMfaDefault example .
* ```
*
*/
@ResourceType(type="okta:index/policyMfaDefault:PolicyMfaDefault")
public class PolicyMfaDefault extends com.pulumi.resources.CustomResource {
/**
* Default group ID (always included)
*
*/
@Export(name="defaultIncludedGroupId", refs={String.class}, tree="[0]")
private Output defaultIncludedGroupId;
/**
* @return Default group ID (always included)
*
*/
public Output defaultIncludedGroupId() {
return this.defaultIncludedGroupId;
}
/**
* Default policy description
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output description;
/**
* @return Default policy description
*
*/
public Output description() {
return this.description;
}
@Export(name="duo", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> duo;
public Output>> duo() {
return Codegen.optional(this.duo);
}
/**
* @deprecated
* Since okta now support multiple external_idps, this will be deprecated. Please use `external_idps` instead
*
*/
@Deprecated /* Since okta now support multiple external_idps, this will be deprecated. Please use `external_idps` instead */
@Export(name="externalIdp", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> externalIdp;
public Output>> externalIdp() {
return Codegen.optional(this.externalIdp);
}
@Export(name="externalIdps", refs={List.class,Map.class,String.class}, tree="[0,[1,2,2]]")
private Output* @Nullable */ List>> externalIdps;
public Output>>> externalIdps() {
return Codegen.optional(this.externalIdps);
}
@Export(name="fidoU2f", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> fidoU2f;
public Output>> fidoU2f() {
return Codegen.optional(this.fidoU2f);
}
@Export(name="fidoWebauthn", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> fidoWebauthn;
public Output>> fidoWebauthn() {
return Codegen.optional(this.fidoWebauthn);
}
@Export(name="googleOtp", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> googleOtp;
public Output>> googleOtp() {
return Codegen.optional(this.googleOtp);
}
@Export(name="hotp", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> hotp;
public Output>> hotp() {
return Codegen.optional(this.hotp);
}
/**
* Is the policy using Okta Identity Engine (OIE) with authenticators instead of factors?
*
*/
@Export(name="isOie", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> isOie;
/**
* @return Is the policy using Okta Identity Engine (OIE) with authenticators instead of factors?
*
*/
public Output> isOie() {
return Codegen.optional(this.isOie);
}
/**
* Default policy name
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Default policy name
*
*/
public Output name() {
return this.name;
}
@Export(name="oktaCall", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaCall;
public Output>> oktaCall() {
return Codegen.optional(this.oktaCall);
}
@Export(name="oktaEmail", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaEmail;
public Output>> oktaEmail() {
return Codegen.optional(this.oktaEmail);
}
@Export(name="oktaOtp", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaOtp;
public Output>> oktaOtp() {
return Codegen.optional(this.oktaOtp);
}
@Export(name="oktaPassword", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaPassword;
public Output>> oktaPassword() {
return Codegen.optional(this.oktaPassword);
}
@Export(name="oktaPush", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaPush;
public Output>> oktaPush() {
return Codegen.optional(this.oktaPush);
}
@Export(name="oktaQuestion", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaQuestion;
public Output>> oktaQuestion() {
return Codegen.optional(this.oktaQuestion);
}
@Export(name="oktaSms", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaSms;
public Output>> oktaSms() {
return Codegen.optional(this.oktaSms);
}
@Export(name="oktaVerify", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> oktaVerify;
public Output>> oktaVerify() {
return Codegen.optional(this.oktaVerify);
}
@Export(name="onpremMfa", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> onpremMfa;
public Output>> onpremMfa() {
return Codegen.optional(this.onpremMfa);
}
@Export(name="phoneNumber", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> phoneNumber;
public Output>> phoneNumber() {
return Codegen.optional(this.phoneNumber);
}
/**
* Default policy priority
*
*/
@Export(name="priority", refs={Integer.class}, tree="[0]")
private Output priority;
/**
* @return Default policy priority
*
*/
public Output priority() {
return this.priority;
}
@Export(name="rsaToken", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> rsaToken;
public Output>> rsaToken() {
return Codegen.optional(this.rsaToken);
}
@Export(name="securityQuestion", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> securityQuestion;
public Output>> securityQuestion() {
return Codegen.optional(this.securityQuestion);
}
/**
* Default policy status
*
*/
@Export(name="status", refs={String.class}, tree="[0]")
private Output status;
/**
* @return Default policy status
*
*/
public Output status() {
return this.status;
}
@Export(name="symantecVip", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> symantecVip;
public Output>> symantecVip() {
return Codegen.optional(this.symantecVip);
}
@Export(name="webauthn", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> webauthn;
public Output>> webauthn() {
return Codegen.optional(this.webauthn);
}
@Export(name="yubikeyToken", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> yubikeyToken;
public Output>> yubikeyToken() {
return Codegen.optional(this.yubikeyToken);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public PolicyMfaDefault(java.lang.String name) {
this(name, PolicyMfaDefaultArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public PolicyMfaDefault(java.lang.String name, @Nullable PolicyMfaDefaultArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public PolicyMfaDefault(java.lang.String name, @Nullable PolicyMfaDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/policyMfaDefault:PolicyMfaDefault", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private PolicyMfaDefault(java.lang.String name, Output id, @Nullable PolicyMfaDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("okta:index/policyMfaDefault:PolicyMfaDefault", name, state, makeResourceOptions(options, id), false);
}
private static PolicyMfaDefaultArgs makeArgs(@Nullable PolicyMfaDefaultArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? PolicyMfaDefaultArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static PolicyMfaDefault get(java.lang.String name, Output id, @Nullable PolicyMfaDefaultState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new PolicyMfaDefault(name, id, state, options);
}
}