
com.pulumi.azurenative.customerinsights.ConnectorMapping 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.customerinsights;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.customerinsights.ConnectorMappingArgs;
import com.pulumi.azurenative.customerinsights.outputs.ConnectorMappingPropertiesResponse;
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.Optional;
import javax.annotation.Nullable;
/**
* The connector mapping resource format.
* Azure REST API version: 2017-04-26. Prior API version in Azure Native 1.x: 2017-04-26.
*
* ## Example Usage
* ### ConnectorMappings_CreateOrUpdate
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.customerinsights.ConnectorMapping;
* import com.pulumi.azurenative.customerinsights.ConnectorMappingArgs;
* import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingPropertiesArgs;
* import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingAvailabilityArgs;
* import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingCompleteOperationArgs;
* import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingErrorManagementArgs;
* import com.pulumi.azurenative.customerinsights.inputs.ConnectorMappingFormatArgs;
* 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 connectorMapping = new ConnectorMapping("connectorMapping", ConnectorMappingArgs.builder()
* .connectorName("testConnector8858")
* .description("Test mapping")
* .displayName("testMapping12491")
* .entityType("Interaction")
* .entityTypeName("TestInteractionType2967")
* .hubName("sdkTestHub")
* .mappingName("testMapping12491")
* .mappingProperties(ConnectorMappingPropertiesArgs.builder()
* .availability(ConnectorMappingAvailabilityArgs.builder()
* .frequency("Hour")
* .interval(5)
* .build())
* .completeOperation(ConnectorMappingCompleteOperationArgs.builder()
* .completionOperationType("DeleteFile")
* .destinationFolder("fakePath")
* .build())
* .errorManagement(ConnectorMappingErrorManagementArgs.builder()
* .errorLimit(10)
* .errorManagementType("StopImport")
* .build())
* .fileFilter("unknown")
* .folderPath("http://sample.dne/file")
* .format(ConnectorMappingFormatArgs.builder()
* .columnDelimiter("|")
* .formatType("TextFormat")
* .build())
* .hasHeader(false)
* .structure(
* ConnectorMappingStructureArgs.builder()
* .columnName("unknown1")
* .isEncrypted(false)
* .propertyName("unknwon1")
* .build(),
* ConnectorMappingStructureArgs.builder()
* .columnName("unknown2")
* .isEncrypted(true)
* .propertyName("unknwon2")
* .build())
* .build())
* .resourceGroupName("TestHubRG")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:customerinsights:ConnectorMapping sdkTestHub/testConnector8858/testMapping12491 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/connectors/{connectorName}/mappings/{mappingName}
* ```
*
*/
@ResourceType(type="azure-native:customerinsights:ConnectorMapping")
public class ConnectorMapping extends com.pulumi.resources.CustomResource {
/**
* The connector mapping name
*
*/
@Export(name="connectorMappingName", refs={String.class}, tree="[0]")
private Output connectorMappingName;
/**
* @return The connector mapping name
*
*/
public Output connectorMappingName() {
return this.connectorMappingName;
}
/**
* The connector name.
*
*/
@Export(name="connectorName", refs={String.class}, tree="[0]")
private Output connectorName;
/**
* @return The connector name.
*
*/
public Output connectorName() {
return this.connectorName;
}
/**
* Type of connector.
*
*/
@Export(name="connectorType", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> connectorType;
/**
* @return Type of connector.
*
*/
public Output> connectorType() {
return Codegen.optional(this.connectorType);
}
/**
* The created time.
*
*/
@Export(name="created", refs={String.class}, tree="[0]")
private Output created;
/**
* @return The created time.
*
*/
public Output created() {
return this.created;
}
/**
* The DataFormat ID.
*
*/
@Export(name="dataFormatId", refs={String.class}, tree="[0]")
private Output dataFormatId;
/**
* @return The DataFormat ID.
*
*/
public Output dataFormatId() {
return this.dataFormatId;
}
/**
* The description of the connector mapping.
*
*/
@Export(name="description", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> description;
/**
* @return The description of the connector mapping.
*
*/
public Output> description() {
return Codegen.optional(this.description);
}
/**
* Display name for the connector mapping.
*
*/
@Export(name="displayName", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> displayName;
/**
* @return Display name for the connector mapping.
*
*/
public Output> displayName() {
return Codegen.optional(this.displayName);
}
/**
* Defines which entity type the file should map to.
*
*/
@Export(name="entityType", refs={String.class}, tree="[0]")
private Output entityType;
/**
* @return Defines which entity type the file should map to.
*
*/
public Output entityType() {
return this.entityType;
}
/**
* The mapping entity name.
*
*/
@Export(name="entityTypeName", refs={String.class}, tree="[0]")
private Output entityTypeName;
/**
* @return The mapping entity name.
*
*/
public Output entityTypeName() {
return this.entityTypeName;
}
/**
* The last modified time.
*
*/
@Export(name="lastModified", refs={String.class}, tree="[0]")
private Output lastModified;
/**
* @return The last modified time.
*
*/
public Output lastModified() {
return this.lastModified;
}
/**
* The properties of the mapping.
*
*/
@Export(name="mappingProperties", refs={ConnectorMappingPropertiesResponse.class}, tree="[0]")
private Output mappingProperties;
/**
* @return The properties of the mapping.
*
*/
public Output mappingProperties() {
return this.mappingProperties;
}
/**
* Resource name.
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return Resource name.
*
*/
public Output name() {
return this.name;
}
/**
* The next run time based on customer's settings.
*
*/
@Export(name="nextRunTime", refs={String.class}, tree="[0]")
private Output nextRunTime;
/**
* @return The next run time based on customer's settings.
*
*/
public Output nextRunTime() {
return this.nextRunTime;
}
/**
* The RunId.
*
*/
@Export(name="runId", refs={String.class}, tree="[0]")
private Output runId;
/**
* @return The RunId.
*
*/
public Output runId() {
return this.runId;
}
/**
* State of connector mapping.
*
*/
@Export(name="state", refs={String.class}, tree="[0]")
private Output state;
/**
* @return State of connector mapping.
*
*/
public Output state() {
return this.state;
}
/**
* The hub name.
*
*/
@Export(name="tenantId", refs={String.class}, tree="[0]")
private Output tenantId;
/**
* @return The hub name.
*
*/
public Output tenantId() {
return this.tenantId;
}
/**
* Resource type.
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return Resource type.
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public ConnectorMapping(java.lang.String name) {
this(name, ConnectorMappingArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public ConnectorMapping(java.lang.String name, ConnectorMappingArgs 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 ConnectorMapping(java.lang.String name, ConnectorMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:customerinsights:ConnectorMapping", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private ConnectorMapping(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:customerinsights:ConnectorMapping", name, null, makeResourceOptions(options, id), false);
}
private static ConnectorMappingArgs makeArgs(ConnectorMappingArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? ConnectorMappingArgs.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:customerinsights/v20170101:ConnectorMapping").build()),
Output.of(Alias.builder().type("azure-native:customerinsights/v20170426:ConnectorMapping").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 ConnectorMapping get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new ConnectorMapping(name, id, options);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy