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

cloudflare.ZeroTrustKeyAccessKeyConfiguration

Explore with Pulumi AI

Access Keys Configuration defines the rotation policy for the keys that access will use to sign data.

Create ZeroTrustKeyAccessKeyConfiguration Resource

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

Constructor syntax

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

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

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

AccountId This property is required. string
The account identifier to target for the resource.
KeyRotationIntervalDays int
Number of days to trigger a rotation of the keys.
AccountId This property is required. string
The account identifier to target for the resource.
KeyRotationIntervalDays int
Number of days to trigger a rotation of the keys.
accountId This property is required. String
The account identifier to target for the resource.
keyRotationIntervalDays Integer
Number of days to trigger a rotation of the keys.
accountId This property is required. string
The account identifier to target for the resource.
keyRotationIntervalDays number
Number of days to trigger a rotation of the keys.
account_id This property is required. str
The account identifier to target for the resource.
key_rotation_interval_days int
Number of days to trigger a rotation of the keys.
accountId This property is required. String
The account identifier to target for the resource.
keyRotationIntervalDays Number
Number of days to trigger a rotation of the keys.

Outputs

All input properties are implicitly available as output properties. Additionally, the ZeroTrustKeyAccessKeyConfiguration 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 ZeroTrustKeyAccessKeyConfiguration Resource

Get an existing ZeroTrustKeyAccessKeyConfiguration 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?: ZeroTrustKeyAccessKeyConfigurationState, opts?: CustomResourceOptions): ZeroTrustKeyAccessKeyConfiguration
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        account_id: Optional[str] = None,
        key_rotation_interval_days: Optional[int] = None) -> ZeroTrustKeyAccessKeyConfiguration
func GetZeroTrustKeyAccessKeyConfiguration(ctx *Context, name string, id IDInput, state *ZeroTrustKeyAccessKeyConfigurationState, opts ...ResourceOption) (*ZeroTrustKeyAccessKeyConfiguration, error)
public static ZeroTrustKeyAccessKeyConfiguration Get(string name, Input<string> id, ZeroTrustKeyAccessKeyConfigurationState? state, CustomResourceOptions? opts = null)
public static ZeroTrustKeyAccessKeyConfiguration get(String name, Output<String> id, ZeroTrustKeyAccessKeyConfigurationState state, CustomResourceOptions options)
resources:  _:    type: cloudflare:ZeroTrustKeyAccessKeyConfiguration    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.
KeyRotationIntervalDays int
Number of days to trigger a rotation of the keys.
AccountId string
The account identifier to target for the resource.
KeyRotationIntervalDays int
Number of days to trigger a rotation of the keys.
accountId String
The account identifier to target for the resource.
keyRotationIntervalDays Integer
Number of days to trigger a rotation of the keys.
accountId string
The account identifier to target for the resource.
keyRotationIntervalDays number
Number of days to trigger a rotation of the keys.
account_id str
The account identifier to target for the resource.
key_rotation_interval_days int
Number of days to trigger a rotation of the keys.
accountId String
The account identifier to target for the resource.
keyRotationIntervalDays Number
Number of days to trigger a rotation of the keys.

Package Details

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