1. Packages
  2. Cloudflare Provider
  3. API Docs
  4. ZeroTrustAccessKeyConfiguration
Cloudflare v6.0.1 published on Wednesday, Apr 16, 2025 by Pulumi

cloudflare.ZeroTrustAccessKeyConfiguration

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";

const exampleZeroTrustAccessKeyConfiguration = new cloudflare.ZeroTrustAccessKeyConfiguration("example_zero_trust_access_key_configuration", {
    accountId: "023e105f4ecef8ad9ca31a8372d0c353",
    keyRotationIntervalDays: 30,
});
Copy
import pulumi
import pulumi_cloudflare as cloudflare

example_zero_trust_access_key_configuration = cloudflare.ZeroTrustAccessKeyConfiguration("example_zero_trust_access_key_configuration",
    account_id="023e105f4ecef8ad9ca31a8372d0c353",
    key_rotation_interval_days=30)
Copy
package main

import (
	"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudflare.NewZeroTrustAccessKeyConfiguration(ctx, "example_zero_trust_access_key_configuration", &cloudflare.ZeroTrustAccessKeyConfigurationArgs{
			AccountId:               pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
			KeyRotationIntervalDays: pulumi.Float64(30),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;

return await Deployment.RunAsync(() => 
{
    var exampleZeroTrustAccessKeyConfiguration = new Cloudflare.ZeroTrustAccessKeyConfiguration("example_zero_trust_access_key_configuration", new()
    {
        AccountId = "023e105f4ecef8ad9ca31a8372d0c353",
        KeyRotationIntervalDays = 30,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustAccessKeyConfiguration;
import com.pulumi.cloudflare.ZeroTrustAccessKeyConfigurationArgs;
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) {
        var exampleZeroTrustAccessKeyConfiguration = new ZeroTrustAccessKeyConfiguration("exampleZeroTrustAccessKeyConfiguration", ZeroTrustAccessKeyConfigurationArgs.builder()
            .accountId("023e105f4ecef8ad9ca31a8372d0c353")
            .keyRotationIntervalDays(30.0)
            .build());

    }
}
Copy
resources:
  exampleZeroTrustAccessKeyConfiguration:
    type: cloudflare:ZeroTrustAccessKeyConfiguration
    name: example_zero_trust_access_key_configuration
    properties:
      accountId: 023e105f4ecef8ad9ca31a8372d0c353
      keyRotationIntervalDays: 30
Copy

Create ZeroTrustAccessKeyConfiguration Resource

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

Constructor syntax

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

@overload
def ZeroTrustAccessKeyConfiguration(resource_name: str,
                                    opts: Optional[ResourceOptions] = None,
                                    account_id: Optional[str] = None,
                                    key_rotation_interval_days: Optional[float] = None)
func NewZeroTrustAccessKeyConfiguration(ctx *Context, name string, args ZeroTrustAccessKeyConfigurationArgs, opts ...ResourceOption) (*ZeroTrustAccessKeyConfiguration, error)
public ZeroTrustAccessKeyConfiguration(string name, ZeroTrustAccessKeyConfigurationArgs args, CustomResourceOptions? opts = null)
public ZeroTrustAccessKeyConfiguration(String name, ZeroTrustAccessKeyConfigurationArgs args)
public ZeroTrustAccessKeyConfiguration(String name, ZeroTrustAccessKeyConfigurationArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustAccessKeyConfiguration
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. ZeroTrustAccessKeyConfigurationArgs
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. ZeroTrustAccessKeyConfigurationArgs
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. ZeroTrustAccessKeyConfigurationArgs
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. ZeroTrustAccessKeyConfigurationArgs
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. ZeroTrustAccessKeyConfigurationArgs
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 zeroTrustAccessKeyConfigurationResource = new Cloudflare.ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource", new()
{
    AccountId = "string",
    KeyRotationIntervalDays = 0,
});
Copy
example, err := cloudflare.NewZeroTrustAccessKeyConfiguration(ctx, "zeroTrustAccessKeyConfigurationResource", &cloudflare.ZeroTrustAccessKeyConfigurationArgs{
	AccountId:               pulumi.String("string"),
	KeyRotationIntervalDays: pulumi.Float64(0),
})
Copy
var zeroTrustAccessKeyConfigurationResource = new ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource", ZeroTrustAccessKeyConfigurationArgs.builder()
    .accountId("string")
    .keyRotationIntervalDays(0)
    .build());
Copy
zero_trust_access_key_configuration_resource = cloudflare.ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource",
    account_id="string",
    key_rotation_interval_days=0)
Copy
const zeroTrustAccessKeyConfigurationResource = new cloudflare.ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource", {
    accountId: "string",
    keyRotationIntervalDays: 0,
});
Copy
type: cloudflare:ZeroTrustAccessKeyConfiguration
properties:
    accountId: string
    keyRotationIntervalDays: 0
Copy

ZeroTrustAccessKeyConfiguration 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 ZeroTrustAccessKeyConfiguration resource accepts the following input properties:

AccountId This property is required. string
Identifier
KeyRotationIntervalDays This property is required. double
The number of days between key rotations.
AccountId This property is required. string
Identifier
KeyRotationIntervalDays This property is required. float64
The number of days between key rotations.
accountId This property is required. String
Identifier
keyRotationIntervalDays This property is required. Double
The number of days between key rotations.
accountId This property is required. string
Identifier
keyRotationIntervalDays This property is required. number
The number of days between key rotations.
account_id This property is required. str
Identifier
key_rotation_interval_days This property is required. float
The number of days between key rotations.
accountId This property is required. String
Identifier
keyRotationIntervalDays This property is required. Number
The number of days between key rotations.

Outputs

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

DaysUntilNextRotation double
The number of days until the next key rotation.
Id string
The provider-assigned unique ID for this managed resource.
LastKeyRotationAt string
The timestamp of the previous key rotation.
DaysUntilNextRotation float64
The number of days until the next key rotation.
Id string
The provider-assigned unique ID for this managed resource.
LastKeyRotationAt string
The timestamp of the previous key rotation.
daysUntilNextRotation Double
The number of days until the next key rotation.
id String
The provider-assigned unique ID for this managed resource.
lastKeyRotationAt String
The timestamp of the previous key rotation.
daysUntilNextRotation number
The number of days until the next key rotation.
id string
The provider-assigned unique ID for this managed resource.
lastKeyRotationAt string
The timestamp of the previous key rotation.
days_until_next_rotation float
The number of days until the next key rotation.
id str
The provider-assigned unique ID for this managed resource.
last_key_rotation_at str
The timestamp of the previous key rotation.
daysUntilNextRotation Number
The number of days until the next key rotation.
id String
The provider-assigned unique ID for this managed resource.
lastKeyRotationAt String
The timestamp of the previous key rotation.

Look up Existing ZeroTrustAccessKeyConfiguration Resource

Get an existing ZeroTrustAccessKeyConfiguration 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?: ZeroTrustAccessKeyConfigurationState, opts?: CustomResourceOptions): ZeroTrustAccessKeyConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        days_until_next_rotation: Optional[float] = None,
        key_rotation_interval_days: Optional[float] = None,
        last_key_rotation_at: Optional[str] = None) -> ZeroTrustAccessKeyConfiguration
func GetZeroTrustAccessKeyConfiguration(ctx *Context, name string, id IDInput, state *ZeroTrustAccessKeyConfigurationState, opts ...ResourceOption) (*ZeroTrustAccessKeyConfiguration, error)
public static ZeroTrustAccessKeyConfiguration Get(string name, Input<string> id, ZeroTrustAccessKeyConfigurationState? state, CustomResourceOptions? opts = null)
public static ZeroTrustAccessKeyConfiguration get(String name, Output<String> id, ZeroTrustAccessKeyConfigurationState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustAccessKeyConfiguration    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
Identifier
DaysUntilNextRotation double
The number of days until the next key rotation.
KeyRotationIntervalDays double
The number of days between key rotations.
LastKeyRotationAt string
The timestamp of the previous key rotation.
AccountId string
Identifier
DaysUntilNextRotation float64
The number of days until the next key rotation.
KeyRotationIntervalDays float64
The number of days between key rotations.
LastKeyRotationAt string
The timestamp of the previous key rotation.
accountId String
Identifier
daysUntilNextRotation Double
The number of days until the next key rotation.
keyRotationIntervalDays Double
The number of days between key rotations.
lastKeyRotationAt String
The timestamp of the previous key rotation.
accountId string
Identifier
daysUntilNextRotation number
The number of days until the next key rotation.
keyRotationIntervalDays number
The number of days between key rotations.
lastKeyRotationAt string
The timestamp of the previous key rotation.
account_id str
Identifier
days_until_next_rotation float
The number of days until the next key rotation.
key_rotation_interval_days float
The number of days between key rotations.
last_key_rotation_at str
The timestamp of the previous key rotation.
accountId String
Identifier
daysUntilNextRotation Number
The number of days until the next key rotation.
keyRotationIntervalDays Number
The number of days between key rotations.
lastKeyRotationAt String
The timestamp of the previous key rotation.

Import

$ pulumi import cloudflare:index/zeroTrustAccessKeyConfiguration:ZeroTrustAccessKeyConfiguration example '<account_id>'
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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