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

com.pulumi.azurenative.costmanagement.Connector Maven / Gradle / Ivy

There is a newer version: 2.78.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.costmanagement;

import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.costmanagement.ConnectorArgs;
import com.pulumi.azurenative.costmanagement.outputs.ConnectorCollectionInfoResponse;
import com.pulumi.core.Alias;
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.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;

/**
 * The Connector model definition
 * Azure REST API version: 2018-08-01-preview.
 * 
 * ## Example Usage
 * ### Connector_Put
 * 
 * 
 * {@code
 * package generated_program;
 * 
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.azurenative.costmanagement.Connector;
 * import com.pulumi.azurenative.costmanagement.ConnectorArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * 
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 * 
 *     public static void stack(Context ctx) {
 *         var connector = new Connector("connector", ConnectorArgs.builder()
 *             .connectorName("AWSBillingAccount")
 *             .credentialsKey("arn:aws:iam::123456789012:role/AzureCostManagementRole")
 *             .credentialsSecret("external-id")
 *             .displayName("AWS-Consolidated-1")
 *             .location("westus")
 *             .reportId("HourlyWithResources")
 *             .resourceGroupName("rg1")
 *             .status("active")
 *             .build());
 * 
 *     }
 * }
 * 
 * }
 * 
* * ## Import * * An existing resource can be imported using its type token, name, and identifier, e.g. * * ```sh * $ pulumi import azure-native:costmanagement:Connector AWSBillingAccount /subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.CostManagement/connectors/{connectorName} * ``` * */ @ResourceType(type="azure-native:costmanagement:Connector") public class Connector extends com.pulumi.resources.CustomResource { /** * Collection information * */ @Export(name="collection", refs={ConnectorCollectionInfoResponse.class}, tree="[0]") private Output collection; /** * @return Collection information * */ public Output collection() { return this.collection; } /** * Connector definition creation datetime * */ @Export(name="createdOn", refs={String.class}, tree="[0]") private Output createdOn; /** * @return Connector definition creation datetime * */ public Output createdOn() { return this.createdOn; } /** * Credentials authentication key (eg AWS ARN) * */ @Export(name="credentialsKey", refs={String.class}, tree="[0]") private Output credentialsKey; /** * @return Credentials authentication key (eg AWS ARN) * */ public Output> credentialsKey() { return Codegen.optional(this.credentialsKey); } /** * Connector DisplayName (defaults to Name) * */ @Export(name="displayName", refs={String.class}, tree="[0]") private Output displayName; /** * @return Connector DisplayName (defaults to Name) * */ public Output> displayName() { return Codegen.optional(this.displayName); } /** * Connector kind (eg aws) * */ @Export(name="kind", refs={String.class}, tree="[0]") private Output kind; /** * @return Connector kind (eg aws) * */ public Output> kind() { return Codegen.optional(this.kind); } /** * Connector location * */ @Export(name="location", refs={String.class}, tree="[0]") private Output location; /** * @return Connector location * */ public Output> location() { return Codegen.optional(this.location); } /** * Connector last modified datetime * */ @Export(name="modifiedOn", refs={String.class}, tree="[0]") private Output modifiedOn; /** * @return Connector last modified datetime * */ public Output modifiedOn() { return this.modifiedOn; } /** * Connector name * */ @Export(name="name", refs={String.class}, tree="[0]") private Output name; /** * @return Connector name * */ public Output name() { return this.name; } /** * Connector providerAccountId (determined from credentials) * */ @Export(name="providerAccountId", refs={String.class}, tree="[0]") private Output providerAccountId; /** * @return Connector providerAccountId (determined from credentials) * */ public Output providerAccountId() { return this.providerAccountId; } /** * Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources) * */ @Export(name="reportId", refs={String.class}, tree="[0]") private Output reportId; /** * @return Identifying source report. (For AWS this is a CUR report name, defined with Daily and with Resources) * */ public Output> reportId() { return Codegen.optional(this.reportId); } /** * Connector status * */ @Export(name="status", refs={String.class}, tree="[0]") private Output status; /** * @return Connector status * */ public Output> status() { return Codegen.optional(this.status); } /** * Resource tags. * */ @Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]") private Output> tags; /** * @return Resource tags. * */ public Output>> tags() { return Codegen.optional(this.tags); } /** * Connector type * */ @Export(name="type", refs={String.class}, tree="[0]") private Output type; /** * @return Connector type * */ public Output type() { return this.type; } /** * * @param name The _unique_ name of the resulting resource. */ public Connector(java.lang.String name) { this(name, ConnectorArgs.Empty); } /** * * @param name The _unique_ name of the resulting resource. * @param args The arguments to use to populate this resource's properties. */ public Connector(java.lang.String name, ConnectorArgs 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 Connector(java.lang.String name, ConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:costmanagement:Connector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false); } private Connector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { super("azure-native:costmanagement:Connector", name, null, makeResourceOptions(options, id), false); } private static ConnectorArgs makeArgs(ConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) { if (options != null && options.getUrn().isPresent()) { return null; } return args == null ? ConnectorArgs.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()) .aliases(List.of( Output.of(Alias.builder().type("azure-native:costmanagement/v20180801preview:Connector").build()), Output.of(Alias.builder().type("azure-native:costmanagement/v20190301preview:Connector").build()) )) .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 options Optional settings to control the behavior of the CustomResource. */ public static Connector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) { return new Connector(name, id, options); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy