fastly.getTlsConfiguration
Explore with Pulumi AI
Use this data source to get the ID of a TLS configuration for use with other resources.
Warning: The data source’s filters are applied using an AND boolean operator, so depending on the combination of filters, they may become mutually exclusive. The exception to this is
id
which must not be specified in combination with any of the others.
Note: If more or less than a single match is returned by the search, this provider will fail. Ensure that your search is specific enough to return a single key.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as fastly from "@pulumi/fastly";
const example = fastly.getTlsConfiguration({
"default": true,
});
const exampleTlsActivation = new fastly.TlsActivation("example", {configurationId: example.then(example => example.id)});
import pulumi
import pulumi_fastly as fastly
example = fastly.get_tls_configuration(default=True)
example_tls_activation = fastly.TlsActivation("example", configuration_id=example.id)
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.GetTlsConfiguration(ctx, &fastly.GetTlsConfigurationArgs{
Default: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
_, err = fastly.NewTlsActivation(ctx, "example", &fastly.TlsActivationArgs{
ConfigurationId: pulumi.String(example.Id),
})
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.GetTlsConfiguration.Invoke(new()
{
Default = true,
});
var exampleTlsActivation = new Fastly.TlsActivation("example", new()
{
ConfigurationId = example.Apply(getTlsConfigurationResult => getTlsConfigurationResult.Id),
});
});
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.inputs.GetTlsConfigurationArgs;
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.getTlsConfiguration(GetTlsConfigurationArgs.builder()
.default_(true)
.build());
var exampleTlsActivation = new TlsActivation("exampleTlsActivation", TlsActivationArgs.builder()
.configurationId(example.applyValue(getTlsConfigurationResult -> getTlsConfigurationResult.id()))
.build());
}
}
resources:
exampleTlsActivation:
type: fastly:TlsActivation
name: example
properties:
configurationId: ${example.id}
variables:
example:
fn::invoke:
Function: fastly:getTlsConfiguration
Arguments:
default: true
Using getTlsConfiguration
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 getTlsConfiguration(args: GetTlsConfigurationArgs, opts?: InvokeOptions): Promise<GetTlsConfigurationResult>
function getTlsConfigurationOutput(args: GetTlsConfigurationOutputArgs, opts?: InvokeOptions): Output<GetTlsConfigurationResult>
def get_tls_configuration(default: Optional[bool] = None,
http_protocols: Optional[Sequence[str]] = None,
id: Optional[str] = None,
name: Optional[str] = None,
tls_protocols: Optional[Sequence[str]] = None,
tls_service: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTlsConfigurationResult
def get_tls_configuration_output(default: Optional[pulumi.Input[bool]] = None,
http_protocols: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tls_protocols: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
tls_service: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTlsConfigurationResult]
func GetTlsConfiguration(ctx *Context, args *GetTlsConfigurationArgs, opts ...InvokeOption) (*GetTlsConfigurationResult, error)
func GetTlsConfigurationOutput(ctx *Context, args *GetTlsConfigurationOutputArgs, opts ...InvokeOption) GetTlsConfigurationResultOutput
> Note: This function is named GetTlsConfiguration
in the Go SDK.
public static class GetTlsConfiguration
{
public static Task<GetTlsConfigurationResult> InvokeAsync(GetTlsConfigurationArgs args, InvokeOptions? opts = null)
public static Output<GetTlsConfigurationResult> Invoke(GetTlsConfigurationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTlsConfigurationResult> getTlsConfiguration(GetTlsConfigurationArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: fastly:index/getTlsConfiguration:getTlsConfiguration
arguments:
# arguments dictionary
The following arguments are supported:
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- Http
Protocols List<string> - HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- Tls
Protocols List<string> - TLS protocols available on the TLS configuration.
- Tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- Http
Protocols []string - HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- Tls
Protocols []string - TLS protocols available on the TLS configuration.
- Tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
- default_ Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- http
Protocols List<String> - HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tls
Protocols List<String> - TLS protocols available on the TLS configuration.
- tls
Service String - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
- default boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- http
Protocols string[] - HTTP protocols available on the TLS configuration.
- id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name string
- Custom name of the TLS configuration.
- tls
Protocols string[] - TLS protocols available on the TLS configuration.
- tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
- default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- http_
protocols Sequence[str] - HTTP protocols available on the TLS configuration.
- id str
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name str
- Custom name of the TLS configuration.
- tls_
protocols Sequence[str] - TLS protocols available on the TLS configuration.
- tls_
service str - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
- default Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- http
Protocols List<String> - HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tls
Protocols List<String> - TLS protocols available on the TLS configuration.
- tls
Service String - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service.
getTlsConfiguration Result
The following output properties are available:
- Created
At string - Timestamp (GMT) when the configuration was created.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- Dns
Records List<GetTls Configuration Dns Record> - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - Http
Protocols List<string> - HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- Tls
Protocols List<string> - TLS protocols available on the TLS configuration.
- Tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - Updated
At string - Timestamp (GMT) when the configuration was last updated.
- Created
At string - Timestamp (GMT) when the configuration was created.
- Default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- Dns
Records []GetTls Configuration Dns Record - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - Http
Protocols []string - HTTP protocols available on the TLS configuration.
- Id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- Name string
- Custom name of the TLS configuration.
- Tls
Protocols []string - TLS protocols available on the TLS configuration.
- Tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - Updated
At string - Timestamp (GMT) when the configuration was last updated.
- created
At String - Timestamp (GMT) when the configuration was created.
- default_ Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dns
Records List<GetTls Configuration Dns Record> - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - http
Protocols List<String> - HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tls
Protocols List<String> - TLS protocols available on the TLS configuration.
- tls
Service String - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - updated
At String - Timestamp (GMT) when the configuration was last updated.
- created
At string - Timestamp (GMT) when the configuration was created.
- default boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dns
Records GetTls Configuration Dns Record[] - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - http
Protocols string[] - HTTP protocols available on the TLS configuration.
- id string
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name string
- Custom name of the TLS configuration.
- tls
Protocols string[] - TLS protocols available on the TLS configuration.
- tls
Service string - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - updated
At string - Timestamp (GMT) when the configuration was last updated.
- created_
at str - Timestamp (GMT) when the configuration was created.
- default bool
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dns_
records Sequence[GetTls Configuration Dns Record] - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - http_
protocols Sequence[str] - HTTP protocols available on the TLS configuration.
- id str
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name str
- Custom name of the TLS configuration.
- tls_
protocols Sequence[str] - TLS protocols available on the TLS configuration.
- tls_
service str - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - updated_
at str - Timestamp (GMT) when the configuration was last updated.
- created
At String - Timestamp (GMT) when the configuration was created.
- default Boolean
- Signifies whether Fastly will use this configuration as a default when creating a new TLS activation.
- dns
Records List<Property Map> - The available DNS addresses that can be used to enable TLS for a domain. DNS must be configured for a domain for TLS handshakes to succeed. If enabling TLS on an apex domain (e.g.
example.com
) you must create four A records (or four AAAA records for IPv6 support) using the displayed global A record's IP addresses with your DNS provider. For subdomains and wildcard domains (e.g.www.example.com
or*.example.com
) you will need to create a relevant CNAME record. - http
Protocols List<String> - HTTP protocols available on the TLS configuration.
- id String
- ID of the TLS configuration obtained from the Fastly API or another data source. Conflicts with all the other filters.
- name String
- Custom name of the TLS configuration.
- tls
Protocols List<String> - TLS protocols available on the TLS configuration.
- tls
Service String - Whether the configuration should support the
PLATFORM
orCUSTOM
TLS service. - updated
At String - Timestamp (GMT) when the configuration was last updated.
Supporting Types
GetTlsConfigurationDnsRecord
- Record
Type string - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- Record
Value string - The IP address or hostname of the DNS record.
- Region string
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
- Record
Type string - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- Record
Value string - The IP address or hostname of the DNS record.
- Region string
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
- record
Type String - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- record
Value String - The IP address or hostname of the DNS record.
- region String
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
- record
Type string - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- record
Value string - The IP address or hostname of the DNS record.
- region string
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
- record_
type str - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- record_
value str - The IP address or hostname of the DNS record.
- region str
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
- record
Type String - Type of DNS record to set, e.g. A, AAAA, or CNAME.
- record
Value String - The IP address or hostname of the DNS record.
- region String
- The regions that will be used to route traffic. Select DNS Records with a
global
region to route traffic to the most performant point of presence (POP) worldwide (global pricing will apply). Select DNS records with aus-eu
region to exclusively land traffic on North American and European POPs.
Package Details
- Repository
- Fastly pulumi/pulumi-fastly
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
fastly
Terraform Provider.