TransferAgentPoolArgs

data class TransferAgentPoolArgs(val bandwidthLimit: Output<TransferAgentPoolBandwidthLimitArgs>? = null, val displayName: Output<String>? = null, val name: Output<String>? = null, val project: Output<String>? = null) : ConvertibleToJava<TransferAgentPoolArgs>

Represents an On-Premises Agent pool. To get more information about AgentPool, see:

Example Usage

Agent Pool Basic

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.storage.StorageFunctions;
import com.pulumi.gcp.storage.inputs.GetTransferProjectServiceAccountArgs;
import com.pulumi.gcp.projects.IAMMember;
import com.pulumi.gcp.projects.IAMMemberArgs;
import com.pulumi.gcp.storage.TransferAgentPool;
import com.pulumi.gcp.storage.TransferAgentPoolArgs;
import com.pulumi.gcp.storage.inputs.TransferAgentPoolBandwidthLimitArgs;
import com.pulumi.resources.CustomResourceOptions;
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) {
final var default = StorageFunctions.getTransferProjectServiceAccount(GetTransferProjectServiceAccountArgs.builder()
.project("my-project-name")
.build());
var pubsubEditorRole = new IAMMember("pubsubEditorRole", IAMMemberArgs.builder()
.project("my-project-name")
.role("roles/pubsub.editor")
.member(String.format("serviceAccount:%s", default_.email()))
.build());
var example = new TransferAgentPool("example", TransferAgentPoolArgs.builder()
.displayName("Source A to destination Z")
.bandwidthLimit(TransferAgentPoolBandwidthLimitArgs.builder()
.limitMbps("120")
.build())
.build(), CustomResourceOptions.builder()
.dependsOn(pubsubEditorRole)
.build());
}
}

Import

AgentPool can be imported using any of these accepted formats

$ pulumi import gcp:storage/transferAgentPool:TransferAgentPool default projects/{{project}}/agentPools/{{name}}
$ pulumi import gcp:storage/transferAgentPool:TransferAgentPool default {{project}}/{{name}}
$ pulumi import gcp:storage/transferAgentPool:TransferAgentPool default {{name}}

Constructors

Link copied to clipboard
constructor(bandwidthLimit: Output<TransferAgentPoolBandwidthLimitArgs>? = null, displayName: Output<String>? = null, name: Output<String>? = null, project: Output<String>? = null)

Properties

Link copied to clipboard

Specifies the bandwidth limit details. If this field is unspecified, the default value is set as 'No Limit'. Structure is documented below.

Link copied to clipboard
val displayName: Output<String>? = null

Specifies the client-specified AgentPool description.

Link copied to clipboard
val name: Output<String>? = null

The ID of the agent pool to create. The agentPoolId must meet the following requirements:

Link copied to clipboard
val project: Output<String>? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): TransferAgentPoolArgs