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

com.pulumi.azurenative.security.inputs.GetGovernanceRuleArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
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.azurenative.security.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;


public final class GetGovernanceRuleArgs extends com.pulumi.resources.InvokeArgs {

    public static final GetGovernanceRuleArgs Empty = new GetGovernanceRuleArgs();

    /**
     * The governance rule key - unique key for the standard governance rule (GUID)
     * 
     */
    @Import(name="ruleId", required=true)
    private Output ruleId;

    /**
     * @return The governance rule key - unique key for the standard governance rule (GUID)
     * 
     */
    public Output ruleId() {
        return this.ruleId;
    }

    /**
     * The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private GetGovernanceRuleArgs() {}

    private GetGovernanceRuleArgs(GetGovernanceRuleArgs $) {
        this.ruleId = $.ruleId;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private GetGovernanceRuleArgs $;

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

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

        /**
         * @param ruleId The governance rule key - unique key for the standard governance rule (GUID)
         * 
         * @return builder
         * 
         */
        public Builder ruleId(Output ruleId) {
            $.ruleId = ruleId;
            return this;
        }

        /**
         * @param ruleId The governance rule key - unique key for the standard governance rule (GUID)
         * 
         * @return builder
         * 
         */
        public Builder ruleId(String ruleId) {
            return ruleId(Output.of(ruleId));
        }

        /**
         * @param scope The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope of the Governance rules. Valid scopes are: management group (format: 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: 'subscriptions/{subscriptionId}'), or security connector (format: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})'
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public GetGovernanceRuleArgs build() {
            if ($.ruleId == null) {
                throw new MissingRequiredPropertyException("GetGovernanceRuleArgs", "ruleId");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("GetGovernanceRuleArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy