BuildServiceAgentPoolArgs

data class BuildServiceAgentPoolArgs(val agentPoolName: Output<String>? = null, val buildServiceName: Output<String>? = null, val properties: Output<BuildServiceAgentPoolPropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val serviceName: Output<String>? = null) : ConvertibleToJava<BuildServiceAgentPoolArgs>

The build service agent pool resource Uses Azure REST API version 2024-01-01-preview. In version 2.x of the Azure Native provider, it used API version 2023-05-01-preview. Other available API versions: 2023-05-01-preview, 2023-07-01-preview, 2023-09-01-preview, 2023-11-01-preview, 2023-12-01, 2024-05-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native appplatform [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

BuildServiceAgentPool_UpdatePut

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var buildServiceAgentPool = new AzureNative.AppPlatform.BuildServiceAgentPool("buildServiceAgentPool", new()
{
AgentPoolName = "default",
BuildServiceName = "default",
Properties = new AzureNative.AppPlatform.Inputs.BuildServiceAgentPoolPropertiesArgs
{
PoolSize = new AzureNative.AppPlatform.Inputs.BuildServiceAgentPoolSizePropertiesArgs
{
Name = "S3",
},
},
ResourceGroupName = "myResourceGroup",
ServiceName = "myservice",
});
});
package main
import (
appplatform "github.com/pulumi/pulumi-azure-native-sdk/appplatform/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := appplatform.NewBuildServiceAgentPool(ctx, "buildServiceAgentPool", &appplatform.BuildServiceAgentPoolArgs{
AgentPoolName: pulumi.String("default"),
BuildServiceName: pulumi.String("default"),
Properties: &appplatform.BuildServiceAgentPoolPropertiesArgs{
PoolSize: &appplatform.BuildServiceAgentPoolSizePropertiesArgs{
Name: pulumi.String("S3"),
},
},
ResourceGroupName: pulumi.String("myResourceGroup"),
ServiceName: pulumi.String("myservice"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.appplatform.BuildServiceAgentPool;
import com.pulumi.azurenative.appplatform.BuildServiceAgentPoolArgs;
import com.pulumi.azurenative.appplatform.inputs.BuildServiceAgentPoolPropertiesArgs;
import com.pulumi.azurenative.appplatform.inputs.BuildServiceAgentPoolSizePropertiesArgs;
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 buildServiceAgentPool = new BuildServiceAgentPool("buildServiceAgentPool", BuildServiceAgentPoolArgs.builder()
.agentPoolName("default")
.buildServiceName("default")
.properties(BuildServiceAgentPoolPropertiesArgs.builder()
.poolSize(BuildServiceAgentPoolSizePropertiesArgs.builder()
.name("S3")
.build())
.build())
.resourceGroupName("myResourceGroup")
.serviceName("myservice")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:appplatform:BuildServiceAgentPool default /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/buildServices/{buildServiceName}/agentPools/{agentPoolName}

Constructors

Link copied to clipboard
constructor(agentPoolName: Output<String>? = null, buildServiceName: Output<String>? = null, properties: Output<BuildServiceAgentPoolPropertiesArgs>? = null, resourceGroupName: Output<String>? = null, serviceName: Output<String>? = null)

Properties

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

The name of the build service agent pool resource.

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

The name of the build service resource.

Link copied to clipboard

build service agent pool properties

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

The name of the resource group that contains the resource. You can obtain this value from the Azure Resource Manager API or the portal.

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

The name of the Service resource.

Functions

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