com.pulumi.azure.policy.inputs.GetPolicyAssignmentArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
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.
// *** 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.policy.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 GetPolicyAssignmentArgs extends com.pulumi.resources.InvokeArgs {
public static final GetPolicyAssignmentArgs Empty = new GetPolicyAssignmentArgs();
/**
* The name of this Policy Assignment. Changing this forces a new Policy Assignment to be created.
*
*/
@Import(name="name", required=true)
private Output name;
/**
* @return The name of this Policy Assignment. Changing this forces a new Policy Assignment to be created.
*
*/
public Output name() {
return this.name;
}
/**
* The ID of the scope this Policy Assignment is assigned to. The `scope_id` can be a subscription id, a resource group id, a management group id, or an ID of any resource that is assigned with a policy. Changing this forces a new Policy Assignment to be created.
*
*/
@Import(name="scopeId", required=true)
private Output scopeId;
/**
* @return The ID of the scope this Policy Assignment is assigned to. The `scope_id` can be a subscription id, a resource group id, a management group id, or an ID of any resource that is assigned with a policy. Changing this forces a new Policy Assignment to be created.
*
*/
public Output scopeId() {
return this.scopeId;
}
private GetPolicyAssignmentArgs() {}
private GetPolicyAssignmentArgs(GetPolicyAssignmentArgs $) {
this.name = $.name;
this.scopeId = $.scopeId;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyAssignmentArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetPolicyAssignmentArgs $;
public Builder() {
$ = new GetPolicyAssignmentArgs();
}
public Builder(GetPolicyAssignmentArgs defaults) {
$ = new GetPolicyAssignmentArgs(Objects.requireNonNull(defaults));
}
/**
* @param name The name of this Policy Assignment. Changing this forces a new Policy Assignment to be created.
*
* @return builder
*
*/
public Builder name(Output name) {
$.name = name;
return this;
}
/**
* @param name The name of this Policy Assignment. Changing this forces a new Policy Assignment to be created.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param scopeId The ID of the scope this Policy Assignment is assigned to. The `scope_id` can be a subscription id, a resource group id, a management group id, or an ID of any resource that is assigned with a policy. Changing this forces a new Policy Assignment to be created.
*
* @return builder
*
*/
public Builder scopeId(Output scopeId) {
$.scopeId = scopeId;
return this;
}
/**
* @param scopeId The ID of the scope this Policy Assignment is assigned to. The `scope_id` can be a subscription id, a resource group id, a management group id, or an ID of any resource that is assigned with a policy. Changing this forces a new Policy Assignment to be created.
*
* @return builder
*
*/
public Builder scopeId(String scopeId) {
return scopeId(Output.of(scopeId));
}
public GetPolicyAssignmentArgs build() {
if ($.name == null) {
throw new MissingRequiredPropertyException("GetPolicyAssignmentArgs", "name");
}
if ($.scopeId == null) {
throw new MissingRequiredPropertyException("GetPolicyAssignmentArgs", "scopeId");
}
return $;
}
}
}