Akamai
getPropertyProducts
Use the akamai.getPropertyProducts
data source to list the products included on a contract.
Attributes reference
This data source returns these attributes:
products
- A list of supported products for the contract, including:product_id
- The product’s unique ID, including theprd_
prefix.product_name
- A string containing the product name.
Example Usage
using Pulumi;
class MyStack : Stack
{
public MyStack()
{
this.PropertyMatch = data.Akamai_property_products.My_example;
}
[Output("propertyMatch")]
public Output<string> PropertyMatch { get; set; }
}
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
ctx.Export("propertyMatch", data.Akamai_property_products.My-example)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
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) {
ctx.export("propertyMatch", data.akamai_property_products().my-example());
}
}
import pulumi
pulumi.export("propertyMatch", data["akamai_property_products"]["my-example"])
import * as pulumi from "@pulumi/pulumi";
export const propertyMatch = data.akamai_property_products["my-example"];
outputs:
propertyMatch: ${data.akamai_property_products"my-example"[%!s(MISSING)]}
Using getPropertyProducts
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 getPropertyProducts(args: GetPropertyProductsArgs, opts?: InvokeOptions): Promise<GetPropertyProductsResult>
function getPropertyProductsOutput(args: GetPropertyProductsOutputArgs, opts?: InvokeOptions): Output<GetPropertyProductsResult>
def get_property_products(contract_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPropertyProductsResult
def get_property_products_output(contract_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPropertyProductsResult]
func GetPropertyProducts(ctx *Context, args *GetPropertyProductsArgs, opts ...InvokeOption) (*GetPropertyProductsResult, error)
func GetPropertyProductsOutput(ctx *Context, args *GetPropertyProductsOutputArgs, opts ...InvokeOption) GetPropertyProductsResultOutput
> Note: This function is named GetPropertyProducts
in the Go SDK.
public static class GetPropertyProducts
{
public static Task<GetPropertyProductsResult> InvokeAsync(GetPropertyProductsArgs args, InvokeOptions? opts = null)
public static Output<GetPropertyProductsResult> Invoke(GetPropertyProductsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPropertyProductsResult> getPropertyProducts(GetPropertyProductsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: akamai:index/getPropertyProducts:getPropertyProducts
Arguments:
# Arguments dictionary
The following arguments are supported:
- Contract
Id string - (Required) A contract's unique ID, including the
ctr_
prefix.
- Contract
Id string - (Required) A contract's unique ID, including the
ctr_
prefix.
- contract
Id String - (Required) A contract's unique ID, including the
ctr_
prefix.
- contract
Id string - (Required) A contract's unique ID, including the
ctr_
prefix.
- contract_
id str - (Required) A contract's unique ID, including the
ctr_
prefix.
- contract
Id String - (Required) A contract's unique ID, including the
ctr_
prefix.
getPropertyProducts Result
The following output properties are available:
- Contract
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Products
List<Get
Property Products Product>
- Contract
Id string - Id string
The provider-assigned unique ID for this managed resource.
- Products
[]Get
Property Products Product
- contract
Id String - id String
The provider-assigned unique ID for this managed resource.
- products
List<Get
Property Products Product>
- contract
Id string - id string
The provider-assigned unique ID for this managed resource.
- products
Get
Property Products Product[]
- contract_
id str - id str
The provider-assigned unique ID for this managed resource.
- products
Sequence[Get
Property Products Product]
- contract
Id String - id String
The provider-assigned unique ID for this managed resource.
- products List<Property Map>
Supporting Types
GetPropertyProductsProduct
- Product
Id string - Product
Name string
- Product
Id string - Product
Name string
- product
Id String - product
Name String
- product
Id string - product
Name string
- product_
id str - product_
name str
- product
Id String - product
Name 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.