getEdgeWorkersResourceTier

Use the akamai.getEdgeWorkersResourceTier data source to list the available resource tiers for a specific contract ID. The resource tier defines the resource consumption limits for an EdgeWorker ID.

Attributes reference

This data source returns these attributes:

  • resource_tier_id - Unique identifier of the resource tier.

Example Usage

This example returns the resource tier fields for an EdgeWorker ID

using Pulumi;
using Akamai = Pulumi.Akamai;

class MyStack : Stack
{
    public MyStack()
    {
        var example = Output.Create(Akamai.GetEdgeWorkersResourceTier.InvokeAsync(new Akamai.GetEdgeWorkersResourceTierArgs
        {
            ContractId = "1-ABC",
            ResourceTierName = "Basic Compute",
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-akamai/sdk/v3/go/akamai"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := akamai.GetEdgeWorkersResourceTier(ctx, &GetEdgeWorkersResourceTierArgs{
			ContractId:       "1-ABC",
			ResourceTierName: "Basic Compute",
		}, nil)
		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.akamai.AkamaiFunctions;
import com.pulumi.akamai.inputs.GetEdgeWorkersResourceTierArgs;
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 example = AkamaiFunctions.getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs.builder()
            .contractId("1-ABC")
            .resourceTierName("Basic Compute")
            .build());

    }
}
import pulumi
import pulumi_akamai as akamai

example = akamai.get_edge_workers_resource_tier(contract_id="1-ABC",
    resource_tier_name="Basic Compute")
import * as pulumi from "@pulumi/pulumi";
import * as akamai from "@pulumi/akamai";

const example = pulumi.output(akamai.getEdgeWorkersResourceTier({
    contractId: "1-ABC",
    resourceTierName: "Basic Compute",
}));
variables:
  example:
    Fn::Invoke:
      Function: akamai:getEdgeWorkersResourceTier
      Arguments:
        contractId: 1-ABC
        resourceTierName: Basic Compute

Using getEdgeWorkersResourceTier

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getEdgeWorkersResourceTier(args: GetEdgeWorkersResourceTierArgs, opts?: InvokeOptions): Promise<GetEdgeWorkersResourceTierResult>
function getEdgeWorkersResourceTierOutput(args: GetEdgeWorkersResourceTierOutputArgs, opts?: InvokeOptions): Output<GetEdgeWorkersResourceTierResult>
def get_edge_workers_resource_tier(contract_id: Optional[str] = None,
                                   resource_tier_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> GetEdgeWorkersResourceTierResult
def get_edge_workers_resource_tier_output(contract_id: Optional[pulumi.Input[str]] = None,
                                   resource_tier_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[GetEdgeWorkersResourceTierResult]
func GetEdgeWorkersResourceTier(ctx *Context, args *GetEdgeWorkersResourceTierArgs, opts ...InvokeOption) (*GetEdgeWorkersResourceTierResult, error)
func GetEdgeWorkersResourceTierOutput(ctx *Context, args *GetEdgeWorkersResourceTierOutputArgs, opts ...InvokeOption) GetEdgeWorkersResourceTierResultOutput

> Note: This function is named GetEdgeWorkersResourceTier in the Go SDK.

public static class GetEdgeWorkersResourceTier 
{
    public static Task<GetEdgeWorkersResourceTierResult> InvokeAsync(GetEdgeWorkersResourceTierArgs args, InvokeOptions? opts = null)
    public static Output<GetEdgeWorkersResourceTierResult> Invoke(GetEdgeWorkersResourceTierInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetEdgeWorkersResourceTierResult> getEdgeWorkersResourceTier(GetEdgeWorkersResourceTierArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: akamai:index/getEdgeWorkersResourceTier:getEdgeWorkersResourceTier
  arguments:
    # arguments dictionary

The following arguments are supported:

ContractId string

Unique identifier of a contract.

ResourceTierName string

Unique name of the resource tier.

ContractId string

Unique identifier of a contract.

ResourceTierName string

Unique name of the resource tier.

contractId String

Unique identifier of a contract.

resourceTierName String

Unique name of the resource tier.

contractId string

Unique identifier of a contract.

resourceTierName string

Unique name of the resource tier.

contract_id str

Unique identifier of a contract.

resource_tier_name str

Unique name of the resource tier.

contractId String

Unique identifier of a contract.

resourceTierName String

Unique name of the resource tier.

getEdgeWorkersResourceTier Result

The following output properties are available:

ContractId string
Id string

The provider-assigned unique ID for this managed resource.

ResourceTierId int
ResourceTierName string
ContractId string
Id string

The provider-assigned unique ID for this managed resource.

ResourceTierId int
ResourceTierName string
contractId String
id String

The provider-assigned unique ID for this managed resource.

resourceTierId Integer
resourceTierName String
contractId string
id string

The provider-assigned unique ID for this managed resource.

resourceTierId number
resourceTierName string
contract_id str
id str

The provider-assigned unique ID for this managed resource.

resource_tier_id int
resource_tier_name str
contractId String
id String

The provider-assigned unique ID for this managed resource.

resourceTierId Number
resourceTierName String

Package Details

Repository
https://github.com/pulumi/pulumi-akamai
License
Apache-2.0
Notes

This Pulumi package is based on the akamai Terraform Provider.