Fastly v8.13.0 published on Wednesday, Nov 13, 2024 by Pulumi
fastly.getTlsConfigurationIds
Explore with Pulumi AI
Use this data source to get the IDs of available TLS configurations for use with other resources.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const example = fastly.getTlsConfigurationIds({});
const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.ids?.[0])});
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_configuration_ids()
example_tls_activation = fastly.TlsActivation("example", configuration_id=example.ids[0])
package main
import (
"github.com/pulumi/pulumi-fastly/sdk/v8/go/fastly"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := fastly.GetTlsConfigurationIds(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
_, err = fastly.NewTlsActivation(ctx, "example", &fastly.TlsActivationArgs{
ConfigurationId: pulumi.String(example.Ids[0]),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Fastly = Pulumi.Fastly;
return await Deployment.RunAsync(() =>
{
var example = Fastly.GetTlsConfigurationIds.Invoke();
var exampleTlsActivation = new Fastly.TlsActivation("example", new()
{
ConfigurationId = example.Apply(getTlsConfigurationIdsResult => getTlsConfigurationIdsResult.Ids[0]),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.fastly.FastlyFunctions;
import com.pulumi.fastly.TlsActivation;
import com.pulumi.fastly.TlsActivationArgs;
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 = FastlyFunctions.getTlsConfigurationIds();
var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
.configurationId(example.applyValue(getTlsConfigurationIdsResult -> getTlsConfigurationIdsResult.ids()[0]))
.build());
}
}
resources:
exampleTlsActivation:
type: fastly:TlsActivation
name: example
properties:
configurationId: ${example.ids[0]}
variables:
example:
fn::invoke:
Function: fastly:getTlsConfigurationIds
Arguments: {}
Using getTlsConfigurationIds
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 getTlsConfigurationIds(opts?: InvokeOptions): Promise<GetTlsConfigurationIdsResult>
function getTlsConfigurationIdsOutput(opts?: InvokeOptions): Output<GetTlsConfigurationIdsResult>
def get_tls_configuration_ids(opts: Optional[InvokeOptions] = None) -> GetTlsConfigurationIdsResult
def get_tls_configuration_ids_output(opts: Optional[InvokeOptions] = None) -> Output[GetTlsConfigurationIdsResult]
func GetTlsConfigurationIds(ctx *Context, opts ...InvokeOption) (*GetTlsConfigurationIdsResult, error)
func GetTlsConfigurationIdsOutput(ctx *Context, opts ...InvokeOption) GetTlsConfigurationIdsResultOutput
> Note: This function is named GetTlsConfigurationIds
in the Go SDK.
public static class GetTlsConfigurationIds
{
public static Task<GetTlsConfigurationIdsResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetTlsConfigurationIdsResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsConfigurationIdsResult> getTlsConfigurationIds(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fastly:index/getTlsConfigurationIds:getTlsConfigurationIds
arguments:
# arguments dictionary
getTlsConfigurationIds Result
The following output properties are available:
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.