com.pulumi.azurenative.costmanagement.CloudConnector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** 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.CloudConnectorArgs;
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.Integer;
import java.lang.String;
import java.util.List;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* The Connector model definition
* Azure REST API version: 2019-03-01-preview. Prior API version in Azure Native 1.x: 2019-03-01-preview.
*
* ## Example Usage
* ### CloudConnector_Put
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.costmanagement.CloudConnector;
* import com.pulumi.azurenative.costmanagement.CloudConnectorArgs;
* 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 cloudConnector = new CloudConnector("cloudConnector", CloudConnectorArgs.builder()
* .connectorName("aws-123456789012")
* .credentialsKey("arn:aws:iam::123456789012:role/AzureCostManagementRole")
* .credentialsSecret("external-id")
* .displayName("AWS-Consolidated-1")
* .reportId("HourlyWithResources")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:costmanagement:CloudConnector aws-123456789012 /providers/Microsoft.CostManagement/cloudConnectors/{connectorName}
* ```
*
*/
@ResourceType(type="azure-native:costmanagement:CloudConnector")
public class CloudConnector extends com.pulumi.resources.CustomResource {
/**
* Connector billing model
*
*/
@Export(name="billingModel", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> billingModel;
/**
* @return Connector billing model
*
*/
public Output> billingModel() {
return Codegen.optional(this.billingModel);
}
/**
* Collection information
*
*/
@Export(name="collectionInfo", refs={ConnectorCollectionInfoResponse.class}, tree="[0]")
private Output collectionInfo;
/**
* @return Collection information
*
*/
public Output collectionInfo() {
return this.collectionInfo;
}
/**
* 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* @Nullable */ String> credentialsKey;
/**
* @return Credentials authentication key (eg AWS ARN)
*
*/
public Output> credentialsKey() {
return Codegen.optional(this.credentialsKey);
}
/**
* Number of days remaining of trial
*
*/
@Export(name="daysTrialRemaining", refs={Integer.class}, tree="[0]")
private Output daysTrialRemaining;
/**
* @return Number of days remaining of trial
*
*/
public Output daysTrialRemaining() {
return this.daysTrialRemaining;
}
/**
* Default ManagementGroupId
*
*/
@Export(name="defaultManagementGroupId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> defaultManagementGroupId;
/**
* @return Default ManagementGroupId
*
*/
public Output> defaultManagementGroupId() {
return Codegen.optional(this.defaultManagementGroupId);
}
/**
* Connector DisplayName
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return Connector DisplayName
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* Associated ExternalBillingAccountId
*
*/
@Export(name="externalBillingAccountId", refs={String.class}, tree="[0]")
private Output externalBillingAccountId;
/**
* @return Associated ExternalBillingAccountId
*
*/
public Output externalBillingAccountId() {
return this.externalBillingAccountId;
}
/**
* Connector kind (eg aws)
*
*/
@Export(name="kind", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> kind;
/**
* @return Connector kind (eg aws)
*
*/
public Output> kind() {
return Codegen.optional(this.kind);
}
/**
* 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;
}
/**
* The display name of the providerBillingAccountId as defined on the external provider
*
*/
@Export(name="providerBillingAccountDisplayName", refs={String.class}, tree="[0]")
private Output providerBillingAccountDisplayName;
/**
* @return The display name of the providerBillingAccountId as defined on the external provider
*
*/
public Output providerBillingAccountDisplayName() {
return this.providerBillingAccountDisplayName;
}
/**
* Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
*
*/
@Export(name="providerBillingAccountId", refs={String.class}, tree="[0]")
private Output providerBillingAccountId;
/**
* @return Connector providerBillingAccountId, determined from credentials (eg AWS Consolidated account number)
*
*/
public Output providerBillingAccountId() {
return this.providerBillingAccountId;
}
/**
* 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* @Nullable */ String> 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 this.status;
}
/**
* Billing SubscriptionId
*
*/
@Export(name="subscriptionId", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> subscriptionId;
/**
* @return Billing SubscriptionId
*
*/
public Output> subscriptionId() {
return Codegen.optional(this.subscriptionId);
}
/**
* 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 CloudConnector(java.lang.String name) {
this(name, CloudConnectorArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public CloudConnector(java.lang.String name, @Nullable CloudConnectorArgs 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 CloudConnector(java.lang.String name, @Nullable CloudConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:costmanagement:CloudConnector", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private CloudConnector(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:costmanagement:CloudConnector", name, null, makeResourceOptions(options, id), false);
}
private static CloudConnectorArgs makeArgs(@Nullable CloudConnectorArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? CloudConnectorArgs.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:CloudConnector").build()),
Output.of(Alias.builder().type("azure-native:costmanagement/v20190301preview:CloudConnector").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 CloudConnector get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new CloudConnector(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy