MulticloudDataTransferConfig class
'Manage Multicloud Data Transfer Configs'
To get more information about MulticloudDataTransferConfig, see:
- API documentation
- How-to Guides
- QUICKSTART_TITLE
Example Usage
Network Connectivity Multicloud Data Transfer Config Basic
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const example = new gcp.networkconnectivity.MulticloudDataTransferConfig("example", {
name: "basic_config",
location: "europe-west1",
description: "A basic multicloud data transfer configs",
labels: {
foo: "bar",
},
services: [
{
serviceName: "big-query",
},
{
serviceName: "cloud-storage",
},
],
});
import pulumi
import pulumi_gcp as gcp
example = gcp.networkconnectivity.MulticloudDataTransferConfig("example",
name="basic_config",
location="europe-west1",
description="A basic multicloud data transfer configs",
labels={
"foo": "bar",
},
services=[
{
"service_name": "big-query",
},
{
"service_name": "cloud-storage",
},
])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() =>
{
var example = new Gcp.NetworkConnectivity.MulticloudDataTransferConfig("example", new()
{
Name = "basic_config",
Location = "europe-west1",
Description = "A basic multicloud data transfer configs",
Labels =
{
{ "foo", "bar" },
},
Services = new[]
{
new Gcp.NetworkConnectivity.Inputs.MulticloudDataTransferConfigServiceArgs
{
ServiceName = "big-query",
},
new Gcp.NetworkConnectivity.Inputs.MulticloudDataTransferConfigServiceArgs
{
ServiceName = "cloud-storage",
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-gcp/sdk/v9/go/gcp/networkconnectivity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkconnectivity.NewMulticloudDataTransferConfig(ctx, "example", &networkconnectivity.MulticloudDataTransferConfigArgs{
Name: pulumi.String("basic_config"),
Location: pulumi.String("europe-west1"),
Description: pulumi.String("A basic multicloud data transfer configs"),
Labels: pulumi.StringMap{
"foo": pulumi.String("bar"),
},
Services: networkconnectivity.MulticloudDataTransferConfigServiceArray{
&networkconnectivity.MulticloudDataTransferConfigServiceArgs{
ServiceName: pulumi.String("big-query"),
},
&networkconnectivity.MulticloudDataTransferConfigServiceArgs{
ServiceName: pulumi.String("cloud-storage"),
},
},
})
if err != nil {
return err
}
return nil
})
}
pulumi {
required_providers {
gcp = {
source = "pulumi/gcp"
}
}
}
resource "gcp_networkconnectivity_multiclouddatatransferconfig" "example" {
name = "basic_config"
location = "europe-west1"
description = "A basic multicloud data transfer configs"
labels = {
"foo" = "bar"
}
services {
service_name = "big-query"
}
services {
service_name = "cloud-storage"
}
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.networkconnectivity.MulticloudDataTransferConfig;
import com.pulumi.gcp.networkconnectivity.MulticloudDataTransferConfigArgs;
import com.pulumi.gcp.networkconnectivity.inputs.MulticloudDataTransferConfigServiceArgs;
import java.util.ArrayList;
import java.util.Arrays;
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 example = new MulticloudDataTransferConfig("example", MulticloudDataTransferConfigArgs.builder()
.name("basic_config")
.location("europe-west1")
.description("A basic multicloud data transfer configs")
.labels(Map.of("foo", "bar"))
.services(
MulticloudDataTransferConfigServiceArgs.builder()
.serviceName("big-query")
.build(),
MulticloudDataTransferConfigServiceArgs.builder()
.serviceName("cloud-storage")
.build())
.build());
}
}
resources:
example:
type: gcp:networkconnectivity:MulticloudDataTransferConfig
properties:
name: basic_config
location: europe-west1
description: A basic multicloud data transfer configs
labels:
foo: bar
services:
- serviceName: big-query
- serviceName: cloud-storage
Import
MulticloudDataTransferConfig can be imported using any of these accepted formats:
projects/{{project}}/locations/{{location}}/multicloudDataTransferConfigs/{{name}}{{project}}/{{location}}/{{name}}{{location}}/{{name}}
When using the pulumi import command, MulticloudDataTransferConfig can be imported using one of the formats above. For example:
$ pulumi import gcp:networkconnectivity/multicloudDataTransferConfig:MulticloudDataTransferConfig default projects/{{project}}/locations/{{location}}/multicloudDataTransferConfigs/{{name}}
$ pulumi import gcp:networkconnectivity/multicloudDataTransferConfig:MulticloudDataTransferConfig default {{project}}/{{location}}/{{name}}
$ pulumi import gcp:networkconnectivity/multicloudDataTransferConfig:MulticloudDataTransferConfig default {{location}}/{{name}}
Constructors
- MulticloudDataTransferConfig(String name, {MulticloudDataTransferConfigArgs? args, CustomResourceOptions? options})
-
Creates a new MulticloudDataTransferConfig.
nameThe Pulumi resource name.argsArguments used to configure this MulticloudDataTransferConfig. The set of arguments for MulticloudDataTransferConfig.optionsResource options controlling this resource's behavior. - MulticloudDataTransferConfig.reference(String urn)
- Creates a typed reference to an existing MulticloudDataTransferConfig resource.
Properties
-
childResources
→ Set<
Resource> -
finalinherited
-
completionSources
↔ Map<
String, IOutputCompletionSource> -
latefinalinherited
-
createTime
↔ Output<
String> -
Time when the MulticloudDataTransferConfig resource was created.
latefinal
-
deletionPolicy
↔ Output<
String> -
Whether Terraform will be prevented from destroying the resource. Defaults to DELETE.
When a 'terraform destroy' or 'pulumi up' would delete the resource,
the command will fail if this field is set to "PREVENT" in Terraform state.
When set to "ABANDON", the command will remove the resource from Terraform
management without updating or deleting the resource in the API.
When set to "DELETE", deleting the resource is allowed.
latefinal
-
description
↔ Output<
String?> -
A description of this resource.
latefinal
-
destinationsActiveCount
↔ Output<
int> -
The number of Destination resources in use with the
MulticloudDataTransferConfig resource.
latefinal
-
destinationsCount
↔ Output<
int> -
The number of Destination resources configured for the
MulticloudDataTransferConfig resource.
latefinal
-
effectiveLabels
↔ Output<
Map< String, String> > -
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
latefinal
-
etag
↔ Output<
String> -
The etag is computed by the server, and might be sent with update and
delete requests so that the client has an up-to-date value before
proceeding.
latefinal
- hashCode → int
-
The hash code for this object.
no setterinherited
-
id
↔ Output<
String> -
getter/setter pairinherited
- isCustom → bool
-
Returns whether this resource is provider-managed.
no setterinherited
- isProtected → bool
-
Returns whether this resource is protected from deletion.
no setterinherited
- isRemote → bool
-
Whether this resource is registered as remote.
no setterinherited
- isResourceReference → bool
-
Whether this instance represents a resource value returned over RPC.
finalinherited
-
labels
↔ Output<
Map< String, String> ?> -
User-defined labels.
latefinal
-
location
↔ Output<
String> -
The location of the multicloud data transfer config.
latefinal
-
name
↔ Output<
String> -
The name of the MulticloudDataTransferConfig resource.
latefinal
-
project
↔ Output<
String> -
The ID of the project in which the resource belongs.
If it is not provided, the provider project is used.
latefinal
-
pulumiLabels
↔ Output<
Map< String, String> > -
The combination of labels configured directly on the resource
and default labels configured on the provider.
latefinal
-
resourceTransforms
→ List<
ResourceTransform> -
Inherited/explicit async transforms.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
services
↔ Output<
List< MulticloudDataTransferConfigService> ?> -
Maps services to their current or planned states. Service names are keys,
and the associated values describe the state of the service.
Structure is documented below.
latefinal
-
transformations
→ List<
ResourceTransformation> -
Inherited/explicit legacy transformations.
no setterinherited
-
uid
↔ Output<
String> -
The Google-generated unique ID for the MulticloudDataTransferConfig
resource. This value is unique across all MulticloudDataTransferConfig
resources. If a resource is deleted and another with the same name is
created, the new resource is assigned a different and unique ID.
latefinal
-
updateTime
↔ Output<
String> -
Time when the MulticloudDataTransferConfig resource was updated.
latefinal
-
urn
↔ Output<
String> -
latefinalinherited
Methods
-
failId(
Object error) → void -
Completes this resource ID with an error when registration fails.
inherited
-
failOutputs(
Object error) → void -
Completes all output properties with
error.inherited -
failUrn(
Object error) → void -
Completes this resource URN with an error when registration fails.
inherited
-
getProvider(
String moduleMember) → ProviderResource? -
Returns provider for
moduleMember's package, if configured.inherited -
getResourceName(
) → String -
Returns this resource's logical name.
inherited
-
getResourceType(
) → String -
Returns this resource's Pulumi type token.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
registerOutput<
T> (String propertyName, {Object? decoder(Object?)?, bool isSecret = false}) → Output< T> -
Registers a dynamic output property for this resource.
inherited
-
resolveId(
String? value, {required bool isKnown}) → void -
Resolves the provider-assigned ID for this resource.
inherited
-
resolveOutputs(
Struct outputs) → void -
Resolves all output properties from a monitor response payload.
inherited
-
resolveUrn(
String value) → void -
Resolves this resource's URN once assigned by the engine.
inherited
-
serializeProperties(
Map< String, dynamic> properties) → Future<Struct> -
Serializes resource properties for RPC transmission.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
get(
String name, Input< String> id, {MulticloudDataTransferConfigState? state, CustomResourceOptions? options}) → MulticloudDataTransferConfig -
Gets an existing MulticloudDataTransferConfig resource's state with the given
nameandid.