cloudflare.ZeroTrustRiskBehavior
Explore with Pulumi AI
The Risk Behavior resource allows you to configure Cloudflare Risk Behaviors for an account.
Create ZeroTrustRiskBehavior Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustRiskBehavior(name: string, args: ZeroTrustRiskBehaviorArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustRiskBehavior(resource_name: str,
args: ZeroTrustRiskBehaviorArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustRiskBehavior(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
behaviors: Optional[Sequence[ZeroTrustRiskBehaviorBehaviorArgs]] = None)
func NewZeroTrustRiskBehavior(ctx *Context, name string, args ZeroTrustRiskBehaviorArgs, opts ...ResourceOption) (*ZeroTrustRiskBehavior, error)
public ZeroTrustRiskBehavior(string name, ZeroTrustRiskBehaviorArgs args, CustomResourceOptions? opts = null)
public ZeroTrustRiskBehavior(String name, ZeroTrustRiskBehaviorArgs args)
public ZeroTrustRiskBehavior(String name, ZeroTrustRiskBehaviorArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustRiskBehavior
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 ZeroTrustRiskBehaviorArgs
- 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 ZeroTrustRiskBehaviorArgs
- 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 ZeroTrustRiskBehaviorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustRiskBehaviorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustRiskBehaviorArgs
- 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 zeroTrustRiskBehaviorResource = new Cloudflare.ZeroTrustRiskBehavior("zeroTrustRiskBehaviorResource", new()
{
AccountId = "string",
Behaviors = new[]
{
new Cloudflare.Inputs.ZeroTrustRiskBehaviorBehaviorArgs
{
Enabled = false,
Name = "string",
RiskLevel = "string",
},
},
});
example, err := cloudflare.NewZeroTrustRiskBehavior(ctx, "zeroTrustRiskBehaviorResource", &cloudflare.ZeroTrustRiskBehaviorArgs{
AccountId: pulumi.String("string"),
Behaviors: cloudflare.ZeroTrustRiskBehaviorBehaviorArray{
&cloudflare.ZeroTrustRiskBehaviorBehaviorArgs{
Enabled: pulumi.Bool(false),
Name: pulumi.String("string"),
RiskLevel: pulumi.String("string"),
},
},
})
var zeroTrustRiskBehaviorResource = new ZeroTrustRiskBehavior("zeroTrustRiskBehaviorResource", ZeroTrustRiskBehaviorArgs.builder()
.accountId("string")
.behaviors(ZeroTrustRiskBehaviorBehaviorArgs.builder()
.enabled(false)
.name("string")
.riskLevel("string")
.build())
.build());
zero_trust_risk_behavior_resource = cloudflare.ZeroTrustRiskBehavior("zeroTrustRiskBehaviorResource",
account_id="string",
behaviors=[{
"enabled": False,
"name": "string",
"risk_level": "string",
}])
const zeroTrustRiskBehaviorResource = new cloudflare.ZeroTrustRiskBehavior("zeroTrustRiskBehaviorResource", {
accountId: "string",
behaviors: [{
enabled: false,
name: "string",
riskLevel: "string",
}],
});
type: cloudflare:ZeroTrustRiskBehavior
properties:
accountId: string
behaviors:
- enabled: false
name: string
riskLevel: string
ZeroTrustRiskBehavior 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 ZeroTrustRiskBehavior resource accepts the following input properties:
- Account
Id string - The account identifier to target for the resource.
- Behaviors
List<Zero
Trust Risk Behavior Behavior> - Zero Trust risk behaviors configured on this account
- Account
Id string - The account identifier to target for the resource.
- Behaviors
[]Zero
Trust Risk Behavior Behavior Args - Zero Trust risk behaviors configured on this account
- account
Id String - The account identifier to target for the resource.
- behaviors
List<Zero
Trust Risk Behavior Behavior> - Zero Trust risk behaviors configured on this account
- account
Id string - The account identifier to target for the resource.
- behaviors
Zero
Trust Risk Behavior Behavior[] - Zero Trust risk behaviors configured on this account
- account_
id str - The account identifier to target for the resource.
- behaviors
Sequence[Zero
Trust Risk Behavior Behavior Args] - Zero Trust risk behaviors configured on this account
- account
Id 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 ZeroTrustRiskBehavior 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 ZeroTrustRiskBehavior Resource
Get an existing ZeroTrustRiskBehavior 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?: ZeroTrustRiskBehaviorState, opts?: CustomResourceOptions): ZeroTrustRiskBehavior
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
behaviors: Optional[Sequence[ZeroTrustRiskBehaviorBehaviorArgs]] = None) -> ZeroTrustRiskBehavior
func GetZeroTrustRiskBehavior(ctx *Context, name string, id IDInput, state *ZeroTrustRiskBehaviorState, opts ...ResourceOption) (*ZeroTrustRiskBehavior, error)
public static ZeroTrustRiskBehavior Get(string name, Input<string> id, ZeroTrustRiskBehaviorState? state, CustomResourceOptions? opts = null)
public static ZeroTrustRiskBehavior get(String name, Output<String> id, ZeroTrustRiskBehaviorState 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.
- Account
Id string - The account identifier to target for the resource.
- Behaviors
List<Zero
Trust Risk Behavior Behavior> - Zero Trust risk behaviors configured on this account
- Account
Id string - The account identifier to target for the resource.
- Behaviors
[]Zero
Trust Risk Behavior Behavior Args - Zero Trust risk behaviors configured on this account
- account
Id String - The account identifier to target for the resource.
- behaviors
List<Zero
Trust Risk Behavior Behavior> - Zero Trust risk behaviors configured on this account
- account
Id string - The account identifier to target for the resource.
- behaviors
Zero
Trust Risk Behavior Behavior[] - Zero Trust risk behaviors configured on this account
- account_
id str - The account identifier to target for the resource.
- behaviors
Sequence[Zero
Trust Risk Behavior Behavior Args] - Zero Trust risk behaviors configured on this account
- account
Id String - The account identifier to target for the resource.
- behaviors List<Property Map>
- Zero Trust risk behaviors configured on this account
Supporting Types
ZeroTrustRiskBehaviorBehavior, ZeroTrustRiskBehaviorBehaviorArgs
- 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
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflare
Terraform Provider.