Try AWS Native preview for resources not in the classic version.
aws.route53.getResolverFirewallConfig
Explore with Pulumi AI
Try AWS Native preview for resources not in the classic version.
aws.route53.ResolverFirewallConfig
provides details about a specific a Route 53 Resolver DNS Firewall config.
This data source allows to find a details about a specific a Route 53 Resolver DNS Firewall config.
Example Usage
The following example shows how to get a firewall config using the VPC ID.
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = aws.route53.getResolverFirewallConfig({
resourceId: "vpc-exampleid",
});
import pulumi
import pulumi_aws as aws
example = aws.route53.get_resolver_firewall_config(resource_id="vpc-exampleid")
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/route53"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := route53.LookupResolverFirewallConfig(ctx, &route53.LookupResolverFirewallConfigArgs{
ResourceId: "vpc-exampleid",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = Aws.Route53.GetResolverFirewallConfig.Invoke(new()
{
ResourceId = "vpc-exampleid",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.route53.Route53Functions;
import com.pulumi.aws.route53.inputs.GetResolverFirewallConfigArgs;
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 = Route53Functions.getResolverFirewallConfig(GetResolverFirewallConfigArgs.builder()
.resourceId("vpc-exampleid")
.build());
}
}
variables:
example:
fn::invoke:
Function: aws:route53:getResolverFirewallConfig
Arguments:
resourceId: vpc-exampleid
Using getResolverFirewallConfig
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 getResolverFirewallConfig(args: GetResolverFirewallConfigArgs, opts?: InvokeOptions): Promise<GetResolverFirewallConfigResult>
function getResolverFirewallConfigOutput(args: GetResolverFirewallConfigOutputArgs, opts?: InvokeOptions): Output<GetResolverFirewallConfigResult>
def get_resolver_firewall_config(resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetResolverFirewallConfigResult
def get_resolver_firewall_config_output(resource_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetResolverFirewallConfigResult]
func LookupResolverFirewallConfig(ctx *Context, args *LookupResolverFirewallConfigArgs, opts ...InvokeOption) (*LookupResolverFirewallConfigResult, error)
func LookupResolverFirewallConfigOutput(ctx *Context, args *LookupResolverFirewallConfigOutputArgs, opts ...InvokeOption) LookupResolverFirewallConfigResultOutput
> Note: This function is named LookupResolverFirewallConfig
in the Go SDK.
public static class GetResolverFirewallConfig
{
public static Task<GetResolverFirewallConfigResult> InvokeAsync(GetResolverFirewallConfigArgs args, InvokeOptions? opts = null)
public static Output<GetResolverFirewallConfigResult> Invoke(GetResolverFirewallConfigInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetResolverFirewallConfigResult> getResolverFirewallConfig(GetResolverFirewallConfigArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aws:route53/getResolverFirewallConfig:getResolverFirewallConfig
arguments:
# arguments dictionary
The following arguments are supported:
- Resource
Id string The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
- Resource
Id string The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
- resource
Id String The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
- resource
Id string The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
- resource_
id str The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
- resource
Id String The ID of the VPC from Amazon VPC that the configuration is for.
The following attribute is additionally exported:
getResolverFirewallConfig Result
The following output properties are available:
- Firewall
Fail stringOpen - Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - Resource
Id string
- Firewall
Fail stringOpen - Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string - Resource
Id string
- firewall
Fail StringOpen - id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - resource
Id String
- firewall
Fail stringOpen - id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string - resource
Id string
- firewall_
fail_ stropen - id str
- The provider-assigned unique ID for this managed resource.
- owner_
id str - resource_
id str
- firewall
Fail StringOpen - id String
- The provider-assigned unique ID for this managed resource.
- owner
Id String - resource
Id String
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aws
Terraform Provider.
Try AWS Native preview for resources not in the classic version.