1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. RiskBehavior
Cloudflare v5.49.1 published on Tuesday, Feb 18, 2025 by Pulumi

cloudflare.RiskBehavior

Explore with Pulumi AI

The Risk Behavior resource allows you to configure Cloudflare Risk Behaviors for an account.

Create RiskBehavior Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new RiskBehavior(name: string, args: RiskBehaviorArgs, opts?: CustomResourceOptions);
@overload
def RiskBehavior(resource_name: str,
                 args: RiskBehaviorArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def RiskBehavior(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 account_id: Optional[str] = None,
                 behaviors: Optional[Sequence[RiskBehaviorBehaviorArgs]] = None)
func NewRiskBehavior(ctx *Context, name string, args RiskBehaviorArgs, opts ...ResourceOption) (*RiskBehavior, error)
public RiskBehavior(string name, RiskBehaviorArgs args, CustomResourceOptions? opts = null)
public RiskBehavior(String name, RiskBehaviorArgs args)
public RiskBehavior(String name, RiskBehaviorArgs args, CustomResourceOptions options)
type: cloudflare:RiskBehavior
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. RiskBehaviorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. RiskBehaviorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. RiskBehaviorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. RiskBehaviorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. RiskBehaviorArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var riskBehaviorResource = new Cloudflare.RiskBehavior("riskBehaviorResource", new()
{
    AccountId = "string",
    Behaviors = new[]
    {
        new Cloudflare.Inputs.RiskBehaviorBehaviorArgs
        {
            Enabled = false,
            Name = "string",
            RiskLevel = "string",
        },
    },
});
Copy
example, err := cloudflare.NewRiskBehavior(ctx, "riskBehaviorResource", &cloudflare.RiskBehaviorArgs{
	AccountId: pulumi.String("string"),
	Behaviors: cloudflare.RiskBehaviorBehaviorArray{
		&cloudflare.RiskBehaviorBehaviorArgs{
			Enabled:   pulumi.Bool(false),
			Name:      pulumi.String("string"),
			RiskLevel: pulumi.String("string"),
		},
	},
})
Copy
var riskBehaviorResource = new RiskBehavior("riskBehaviorResource", RiskBehaviorArgs.builder()
    .accountId("string")
    .behaviors(RiskBehaviorBehaviorArgs.builder()
        .enabled(false)
        .name("string")
        .riskLevel("string")
        .build())
    .build());
Copy
risk_behavior_resource = cloudflare.RiskBehavior("riskBehaviorResource",
    account_id="string",
    behaviors=[{
        "enabled": False,
        "name": "string",
        "risk_level": "string",
    }])
Copy
const riskBehaviorResource = new cloudflare.RiskBehavior("riskBehaviorResource", {
    accountId: "string",
    behaviors: [{
        enabled: false,
        name: "string",
        riskLevel: "string",
    }],
});
Copy
type: cloudflare:RiskBehavior
properties:
    accountId: string
    behaviors:
        - enabled: false
          name: string
          riskLevel: string
Copy

RiskBehavior Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The RiskBehavior resource accepts the following input properties:

AccountId This property is required. string
The account identifier to target for the resource.
Behaviors List<RiskBehaviorBehavior>
Zero Trust risk behaviors configured on this account
AccountId This property is required. string
The account identifier to target for the resource.
Behaviors []RiskBehaviorBehaviorArgs
Zero Trust risk behaviors configured on this account
accountId This property is required. String
The account identifier to target for the resource.
behaviors List<RiskBehaviorBehavior>
Zero Trust risk behaviors configured on this account
accountId This property is required. string
The account identifier to target for the resource.
behaviors RiskBehaviorBehavior[]
Zero Trust risk behaviors configured on this account
account_id This property is required. str
The account identifier to target for the resource.
behaviors Sequence[RiskBehaviorBehaviorArgs]
Zero Trust risk behaviors configured on this account
accountId This property is required. String
The account identifier to target for the resource.
behaviors List<Property Map>
Zero Trust risk behaviors configured on this account

Outputs

All input properties are implicitly available as output properties. Additionally, the RiskBehavior resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing RiskBehavior Resource

Get an existing RiskBehavior resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: RiskBehaviorState, opts?: CustomResourceOptions): RiskBehavior
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        behaviors: Optional[Sequence[RiskBehaviorBehaviorArgs]] = None) -> RiskBehavior
func GetRiskBehavior(ctx *Context, name string, id IDInput, state *RiskBehaviorState, opts ...ResourceOption) (*RiskBehavior, error)
public static RiskBehavior Get(string name, Input<string> id, RiskBehaviorState? state, CustomResourceOptions? opts = null)
public static RiskBehavior get(String name, Output<String> id, RiskBehaviorState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:RiskBehavior    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AccountId string
The account identifier to target for the resource.
Behaviors List<RiskBehaviorBehavior>
Zero Trust risk behaviors configured on this account
AccountId string
The account identifier to target for the resource.
Behaviors []RiskBehaviorBehaviorArgs
Zero Trust risk behaviors configured on this account
accountId String
The account identifier to target for the resource.
behaviors List<RiskBehaviorBehavior>
Zero Trust risk behaviors configured on this account
accountId string
The account identifier to target for the resource.
behaviors RiskBehaviorBehavior[]
Zero Trust risk behaviors configured on this account
account_id str
The account identifier to target for the resource.
behaviors Sequence[RiskBehaviorBehaviorArgs]
Zero Trust risk behaviors configured on this account
accountId String
The account identifier to target for the resource.
behaviors List<Property Map>
Zero Trust risk behaviors configured on this account

Supporting Types

RiskBehaviorBehavior
, RiskBehaviorBehaviorArgs

Enabled This property is required. bool
Whether this risk behavior type is enabled.
Name This property is required. string
Name of this risk behavior type
RiskLevel This property is required. string
Risk level. Available values: low, medium, high
Enabled This property is required. bool
Whether this risk behavior type is enabled.
Name This property is required. string
Name of this risk behavior type
RiskLevel This property is required. string
Risk level. Available values: low, medium, high
enabled This property is required. Boolean
Whether this risk behavior type is enabled.
name This property is required. String
Name of this risk behavior type
riskLevel This property is required. String
Risk level. Available values: low, medium, high
enabled This property is required. boolean
Whether this risk behavior type is enabled.
name This property is required. string
Name of this risk behavior type
riskLevel This property is required. string
Risk level. Available values: low, medium, high
enabled This property is required. bool
Whether this risk behavior type is enabled.
name This property is required. str
Name of this risk behavior type
risk_level This property is required. str
Risk level. Available values: low, medium, high
enabled This property is required. Boolean
Whether this risk behavior type is enabled.
name This property is required. String
Name of this risk behavior type
riskLevel This property is required. String
Risk level. Available values: low, medium, high

Package Details

Repository
Cloudflare pulumi/pulumi-cloudflare
License
Apache-2.0
Notes
This Pulumi package is based on the cloudflare Terraform Provider.