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

com.pulumi.googlenative.apigateway.v1.inputs.ApigatewayAuditLogConfigArgs 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.googlenative.apigateway.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.apigateway.v1.enums.ApigatewayAuditLogConfigLogType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Provides the configuration for logging a type of permissions. Example: { "audit_log_configs": [ { "log_type": "DATA_READ", "exempted_members": [ "user:[email protected]" ] }, { "log_type": "DATA_WRITE" } ] } This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting [email protected] from DATA_READ logging.
 * 
 */
public final class ApigatewayAuditLogConfigArgs extends com.pulumi.resources.ResourceArgs {

    public static final ApigatewayAuditLogConfigArgs Empty = new ApigatewayAuditLogConfigArgs();

    /**
     * Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     * 
     */
    @Import(name="exemptedMembers")
    private @Nullable Output> exemptedMembers;

    /**
     * @return Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
     * 
     */
    public Optional>> exemptedMembers() {
        return Optional.ofNullable(this.exemptedMembers);
    }

    /**
     * The log type that this config enables.
     * 
     */
    @Import(name="logType")
    private @Nullable Output logType;

    /**
     * @return The log type that this config enables.
     * 
     */
    public Optional> logType() {
        return Optional.ofNullable(this.logType);
    }

    private ApigatewayAuditLogConfigArgs() {}

    private ApigatewayAuditLogConfigArgs(ApigatewayAuditLogConfigArgs $) {
        this.exemptedMembers = $.exemptedMembers;
        this.logType = $.logType;
    }

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

    public static final class Builder {
        private ApigatewayAuditLogConfigArgs $;

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

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

        /**
         * @param exemptedMembers Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
         * 
         * @return builder
         * 
         */
        public Builder exemptedMembers(@Nullable Output> exemptedMembers) {
            $.exemptedMembers = exemptedMembers;
            return this;
        }

        /**
         * @param exemptedMembers Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
         * 
         * @return builder
         * 
         */
        public Builder exemptedMembers(List exemptedMembers) {
            return exemptedMembers(Output.of(exemptedMembers));
        }

        /**
         * @param exemptedMembers Specifies the identities that do not cause logging for this type of permission. Follows the same format of Binding.members.
         * 
         * @return builder
         * 
         */
        public Builder exemptedMembers(String... exemptedMembers) {
            return exemptedMembers(List.of(exemptedMembers));
        }

        /**
         * @param logType The log type that this config enables.
         * 
         * @return builder
         * 
         */
        public Builder logType(@Nullable Output logType) {
            $.logType = logType;
            return this;
        }

        /**
         * @param logType The log type that this config enables.
         * 
         * @return builder
         * 
         */
        public Builder logType(ApigatewayAuditLogConfigLogType logType) {
            return logType(Output.of(logType));
        }

        public ApigatewayAuditLogConfigArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy