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.marketplace.RoleAssignment 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.azure.marketplace;
import com.pulumi.azure.Utilities;
import com.pulumi.azure.marketplace.RoleAssignmentArgs;
import com.pulumi.azure.marketplace.inputs.RoleAssignmentState;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.Boolean;
import java.lang.String;
import java.util.Optional;
import javax.annotation.Nullable;
@ResourceType(type="azure:marketplace/roleAssignment:RoleAssignment")
public class RoleAssignment extends com.pulumi.resources.CustomResource {
@Export(name="condition", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> condition;
public Output> condition() {
return Codegen.optional(this.condition);
}
@Export(name="conditionVersion", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> conditionVersion;
public Output> conditionVersion() {
return Codegen.optional(this.conditionVersion);
}
@Export(name="delegatedManagedIdentityResourceId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> delegatedManagedIdentityResourceId;
public Output> delegatedManagedIdentityResourceId() {
return Codegen.optional(this.delegatedManagedIdentityResourceId);
}
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
public Output> description() {
return Codegen.optional(this.description);
}
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
public Output name() {
return this.name;
}
@Export(name="principalId", refs={String.class}, tree="[0]")
private Output principalId;
public Output principalId() {
return this.principalId;
}
@Export(name="principalType", refs={String.class}, tree="[0]")
private Output principalType;
public Output principalType() {
return this.principalType;
}
@Export(name="roleDefinitionId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> roleDefinitionId;
public Output> roleDefinitionId() {
return Codegen.optional(this.roleDefinitionId);
}
@Export(name="roleDefinitionName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> roleDefinitionName;
public Output> roleDefinitionName() {
return Codegen.optional(this.roleDefinitionName);
}
@Export(name="skipServicePrincipalAadCheck", refs={Boolean.class}, tree="[0]")
private Output* @Nullable */ Boolean> skipServicePrincipalAadCheck;
public Output> skipServicePrincipalAadCheck() {
return Codegen.optional(this.skipServicePrincipalAadCheck);
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public RoleAssignment(java.lang.String name) {
this(name, RoleAssignmentArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public RoleAssignment(java.lang.String name, RoleAssignmentArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public RoleAssignment(java.lang.String name, RoleAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:marketplace/roleAssignment:RoleAssignment", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private RoleAssignment(java.lang.String name, Output id, @Nullable RoleAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure:marketplace/roleAssignment:RoleAssignment", name, state, makeResourceOptions(options, id), false);
}
private static RoleAssignmentArgs makeArgs(RoleAssignmentArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? RoleAssignmentArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static RoleAssignment get(java.lang.String name, Output id, @Nullable RoleAssignmentState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new RoleAssignment(name, id, state, options);
}
}