1. Packages
  2. Cloudflare
  3. API Docs
  4. RiskBehavior
Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi

cloudflare.RiskBehavior

Explore with Pulumi AI

cloudflare logo
Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi

    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 string
    The unique name of the resource.
    args RiskBehaviorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args 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 string
    The unique name of the resource.
    args RiskBehaviorArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args RiskBehaviorArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args 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",
            },
        },
    });
    
    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"),
    		},
    	},
    })
    
    var riskBehaviorResource = new RiskBehavior("riskBehaviorResource", RiskBehaviorArgs.builder()
        .accountId("string")
        .behaviors(RiskBehaviorBehaviorArgs.builder()
            .enabled(false)
            .name("string")
            .riskLevel("string")
            .build())
        .build());
    
    risk_behavior_resource = cloudflare.RiskBehavior("riskBehaviorResource",
        account_id="string",
        behaviors=[cloudflare.RiskBehaviorBehaviorArgs(
            enabled=False,
            name="string",
            risk_level="string",
        )])
    
    const riskBehaviorResource = new cloudflare.RiskBehavior("riskBehaviorResource", {
        accountId: "string",
        behaviors: [{
            enabled: false,
            name: "string",
            riskLevel: "string",
        }],
    });
    
    type: cloudflare:RiskBehavior
    properties:
        accountId: string
        behaviors:
            - enabled: false
              name: string
              riskLevel: string
    

    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

    The RiskBehavior resource accepts the following input properties:

    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

    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)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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 bool
    Whether this risk behavior type is enabled.
    Name string
    Name of this risk behavior type
    RiskLevel string
    Risk level. Available values: low, medium, high
    Enabled bool
    Whether this risk behavior type is enabled.
    Name string
    Name of this risk behavior type
    RiskLevel string
    Risk level. Available values: low, medium, high
    enabled Boolean
    Whether this risk behavior type is enabled.
    name String
    Name of this risk behavior type
    riskLevel String
    Risk level. Available values: low, medium, high
    enabled boolean
    Whether this risk behavior type is enabled.
    name string
    Name of this risk behavior type
    riskLevel string
    Risk level. Available values: low, medium, high
    enabled bool
    Whether this risk behavior type is enabled.
    name str
    Name of this risk behavior type
    risk_level str
    Risk level. Available values: low, medium, high
    enabled Boolean
    Whether this risk behavior type is enabled.
    name String
    Name of this risk behavior type
    riskLevel 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.
    cloudflare logo
    Cloudflare v5.33.1 published on Wednesday, Jun 26, 2024 by Pulumi