All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.keyvault.inputs.KeyRotationPolicyArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show newest version
// *** 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.azure.keyvault.inputs;

import com.pulumi.azure.keyvault.inputs.KeyRotationPolicyAutomaticArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class KeyRotationPolicyArgs extends com.pulumi.resources.ResourceArgs {

    public static final KeyRotationPolicyArgs Empty = new KeyRotationPolicyArgs();

    /**
     * An `automatic` block as defined below.
     * 
     */
    @Import(name="automatic")
    private @Nullable Output automatic;

    /**
     * @return An `automatic` block as defined below.
     * 
     */
    public Optional> automatic() {
        return Optional.ofNullable(this.automatic);
    }

    /**
     * Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    @Import(name="expireAfter")
    private @Nullable Output expireAfter;

    /**
     * @return Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    public Optional> expireAfter() {
        return Optional.ofNullable(this.expireAfter);
    }

    /**
     * Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    @Import(name="notifyBeforeExpiry")
    private @Nullable Output notifyBeforeExpiry;

    /**
     * @return Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
     * 
     */
    public Optional> notifyBeforeExpiry() {
        return Optional.ofNullable(this.notifyBeforeExpiry);
    }

    private KeyRotationPolicyArgs() {}

    private KeyRotationPolicyArgs(KeyRotationPolicyArgs $) {
        this.automatic = $.automatic;
        this.expireAfter = $.expireAfter;
        this.notifyBeforeExpiry = $.notifyBeforeExpiry;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(KeyRotationPolicyArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private KeyRotationPolicyArgs $;

        public Builder() {
            $ = new KeyRotationPolicyArgs();
        }

        public Builder(KeyRotationPolicyArgs defaults) {
            $ = new KeyRotationPolicyArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param automatic An `automatic` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder automatic(@Nullable Output automatic) {
            $.automatic = automatic;
            return this;
        }

        /**
         * @param automatic An `automatic` block as defined below.
         * 
         * @return builder
         * 
         */
        public Builder automatic(KeyRotationPolicyAutomaticArgs automatic) {
            return automatic(Output.of(automatic));
        }

        /**
         * @param expireAfter Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder expireAfter(@Nullable Output expireAfter) {
            $.expireAfter = expireAfter;
            return this;
        }

        /**
         * @param expireAfter Expire a Key Vault Key after given duration as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder expireAfter(String expireAfter) {
            return expireAfter(Output.of(expireAfter));
        }

        /**
         * @param notifyBeforeExpiry Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder notifyBeforeExpiry(@Nullable Output notifyBeforeExpiry) {
            $.notifyBeforeExpiry = notifyBeforeExpiry;
            return this;
        }

        /**
         * @param notifyBeforeExpiry Notify at a given duration before expiry as an [ISO 8601 duration](https://en.wikipedia.org/wiki/ISO_8601#Durations).
         * 
         * @return builder
         * 
         */
        public Builder notifyBeforeExpiry(String notifyBeforeExpiry) {
            return notifyBeforeExpiry(Output.of(notifyBeforeExpiry));
        }

        public KeyRotationPolicyArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy