TransferAgentPool

class TransferAgentPool : KotlinCustomResource

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}}

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>?

Specifies the client-specified AgentPool description.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

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

Link copied to clipboard
val project: Output<String>

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val state: Output<String>

Specifies the state of the AgentPool.

Link copied to clipboard
val urn: Output<String>