Vercel v1.14.3 published on Monday, Oct 7, 2024 by Pulumiverse
vercel.getAttackChallengeMode
Explore with Pulumi AI
Provides an Attack Challenge Mode resource.
Attack Challenge Mode prevent malicious traffic by showing a verification challenge for every visitor.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as vercel from "@pulumi/vercel";
const example = vercel.getAttackChallengeMode({
projectId: vercel_project.example.id,
});
import pulumi
import pulumi_vercel as vercel
example = vercel.get_attack_challenge_mode(project_id=vercel_project["example"]["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-vercel/sdk/go/vercel"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vercel.LookupAttackChallengeMode(ctx, &vercel.LookupAttackChallengeModeArgs{
ProjectId: vercel_project.Example.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vercel = Pulumi.Vercel;
return await Deployment.RunAsync(() =>
{
var example = Vercel.GetAttackChallengeMode.Invoke(new()
{
ProjectId = vercel_project.Example.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vercel.VercelFunctions;
import com.pulumi.vercel.inputs.GetAttackChallengeModeArgs;
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 = VercelFunctions.getAttackChallengeMode(GetAttackChallengeModeArgs.builder()
.projectId(vercel_project.example().id())
.build());
}
}
variables:
example:
fn::invoke:
Function: vercel:getAttackChallengeMode
Arguments:
projectId: ${vercel_project.example.id}
Using getAttackChallengeMode
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 getAttackChallengeMode(args: GetAttackChallengeModeArgs, opts?: InvokeOptions): Promise<GetAttackChallengeModeResult>
function getAttackChallengeModeOutput(args: GetAttackChallengeModeOutputArgs, opts?: InvokeOptions): Output<GetAttackChallengeModeResult>
def get_attack_challenge_mode(project_id: Optional[str] = None,
team_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAttackChallengeModeResult
def get_attack_challenge_mode_output(project_id: Optional[pulumi.Input[str]] = None,
team_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAttackChallengeModeResult]
func LookupAttackChallengeMode(ctx *Context, args *LookupAttackChallengeModeArgs, opts ...InvokeOption) (*LookupAttackChallengeModeResult, error)
func LookupAttackChallengeModeOutput(ctx *Context, args *LookupAttackChallengeModeOutputArgs, opts ...InvokeOption) LookupAttackChallengeModeResultOutput
> Note: This function is named LookupAttackChallengeMode
in the Go SDK.
public static class GetAttackChallengeMode
{
public static Task<GetAttackChallengeModeResult> InvokeAsync(GetAttackChallengeModeArgs args, InvokeOptions? opts = null)
public static Output<GetAttackChallengeModeResult> Invoke(GetAttackChallengeModeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAttackChallengeModeResult> getAttackChallengeMode(GetAttackChallengeModeArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: vercel:index/getAttackChallengeMode:getAttackChallengeMode
arguments:
# arguments dictionary
The following arguments are supported:
- project_
id str - The ID of the Project to adjust the CPU for.
- team_
id str - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
getAttackChallengeMode Result
The following output properties are available:
- Enabled bool
- Whether Attack Challenge Mode is enabled or not.
- Id string
- The resource identifier.
- Project
Id string - The ID of the Project to adjust the CPU for.
- Team
Id string - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
- Enabled bool
- Whether Attack Challenge Mode is enabled or not.
- Id string
- The resource identifier.
- Project
Id string - The ID of the Project to adjust the CPU for.
- Team
Id string - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
- enabled Boolean
- Whether Attack Challenge Mode is enabled or not.
- id String
- The resource identifier.
- project
Id String - The ID of the Project to adjust the CPU for.
- team
Id String - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
- enabled boolean
- Whether Attack Challenge Mode is enabled or not.
- id string
- The resource identifier.
- project
Id string - The ID of the Project to adjust the CPU for.
- team
Id string - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
- enabled bool
- Whether Attack Challenge Mode is enabled or not.
- id str
- The resource identifier.
- project_
id str - The ID of the Project to adjust the CPU for.
- team_
id str - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
- enabled Boolean
- Whether Attack Challenge Mode is enabled or not.
- id String
- The resource identifier.
- project
Id String - The ID of the Project to adjust the CPU for.
- team
Id String - The ID of the team the Project exists under. Required when configuring a team resource if a default team has not been set in the provider.
Package Details
- Repository
- vercel pulumiverse/pulumi-vercel
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vercel
Terraform Provider.