All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.azure.authorization.RoleDefinitionArgs 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.
// *** 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.authorization;
import com.pulumi.azure.authorization.inputs.RoleDefinitionPermissionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class RoleDefinitionArgs extends com.pulumi.resources.ResourceArgs {
public static final RoleDefinitionArgs Empty = new RoleDefinitionArgs();
/**
* One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
*
* > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied.
*
*/
@Import(name="assignableScopes")
private @Nullable Output> assignableScopes;
/**
* @return One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
*
* > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied.
*
*/
public Optional>> assignableScopes() {
return Optional.ofNullable(this.assignableScopes);
}
/**
* A description of the Role Definition.
*
*/
@Import(name="description")
private @Nullable Output description;
/**
* @return A description of the Role Definition.
*
*/
public Optional> description() {
return Optional.ofNullable(this.description);
}
/**
* The name of the Role Definition.
*
*/
@Import(name="name")
private @Nullable Output name;
/**
* @return The name of the Role Definition.
*
*/
public Optional> name() {
return Optional.ofNullable(this.name);
}
/**
* A `permissions` block as defined below.
*
*/
@Import(name="permissions")
private @Nullable Output> permissions;
/**
* @return A `permissions` block as defined below.
*
*/
public Optional>> permissions() {
return Optional.ofNullable(this.permissions);
}
/**
* A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
*
*/
@Import(name="roleDefinitionId")
private @Nullable Output roleDefinitionId;
/**
* @return A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
*
*/
public Optional> roleDefinitionId() {
return Optional.ofNullable(this.roleDefinitionId);
}
/**
* The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
*
*/
@Import(name="scope", required=true)
private Output scope;
/**
* @return The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
*
*/
public Output scope() {
return this.scope;
}
private RoleDefinitionArgs() {}
private RoleDefinitionArgs(RoleDefinitionArgs $) {
this.assignableScopes = $.assignableScopes;
this.description = $.description;
this.name = $.name;
this.permissions = $.permissions;
this.roleDefinitionId = $.roleDefinitionId;
this.scope = $.scope;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(RoleDefinitionArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private RoleDefinitionArgs $;
public Builder() {
$ = new RoleDefinitionArgs();
}
public Builder(RoleDefinitionArgs defaults) {
$ = new RoleDefinitionArgs(Objects.requireNonNull(defaults));
}
/**
* @param assignableScopes One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
*
* > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied.
*
* @return builder
*
*/
public Builder assignableScopes(@Nullable Output> assignableScopes) {
$.assignableScopes = assignableScopes;
return this;
}
/**
* @param assignableScopes One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
*
* > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied.
*
* @return builder
*
*/
public Builder assignableScopes(List assignableScopes) {
return assignableScopes(Output.of(assignableScopes));
}
/**
* @param assignableScopes One or more assignable scopes for this Role Definition, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`.
*
* > **NOTE:** The value for `scope` is automatically included in this list if no other values supplied.
*
* @return builder
*
*/
public Builder assignableScopes(String... assignableScopes) {
return assignableScopes(List.of(assignableScopes));
}
/**
* @param description A description of the Role Definition.
*
* @return builder
*
*/
public Builder description(@Nullable Output description) {
$.description = description;
return this;
}
/**
* @param description A description of the Role Definition.
*
* @return builder
*
*/
public Builder description(String description) {
return description(Output.of(description));
}
/**
* @param name The name of the Role Definition.
*
* @return builder
*
*/
public Builder name(@Nullable Output name) {
$.name = name;
return this;
}
/**
* @param name The name of the Role Definition.
*
* @return builder
*
*/
public Builder name(String name) {
return name(Output.of(name));
}
/**
* @param permissions A `permissions` block as defined below.
*
* @return builder
*
*/
public Builder permissions(@Nullable Output> permissions) {
$.permissions = permissions;
return this;
}
/**
* @param permissions A `permissions` block as defined below.
*
* @return builder
*
*/
public Builder permissions(List permissions) {
return permissions(Output.of(permissions));
}
/**
* @param permissions A `permissions` block as defined below.
*
* @return builder
*
*/
public Builder permissions(RoleDefinitionPermissionArgs... permissions) {
return permissions(List.of(permissions));
}
/**
* @param roleDefinitionId A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder roleDefinitionId(@Nullable Output roleDefinitionId) {
$.roleDefinitionId = roleDefinitionId;
return this;
}
/**
* @param roleDefinitionId A unique UUID/GUID which identifies this role - one will be generated if not specified. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder roleDefinitionId(String roleDefinitionId) {
return roleDefinitionId(Output.of(roleDefinitionId));
}
/**
* @param scope The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scope(Output scope) {
$.scope = scope;
return this;
}
/**
* @param scope The scope at which the Role Definition applies to, such as `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333`, `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup`, or `/subscriptions/0b1f6471-1bf0-4dda-aec3-111122223333/resourceGroups/myGroup/providers/Microsoft.Compute/virtualMachines/myVM`. It is recommended to use the first entry of the `assignable_scopes`. Changing this forces a new resource to be created.
*
* @return builder
*
*/
public Builder scope(String scope) {
return scope(Output.of(scope));
}
public RoleDefinitionArgs build() {
if ($.scope == null) {
throw new MissingRequiredPropertyException("RoleDefinitionArgs", "scope");
}
return $;
}
}
}