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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
exampleZeroTrustAccessKeyConfiguration:
type: cloudflare:ZeroTrustAccessKeyConfiguration
name: example_zero_trust_access_key_configuration
properties:
accountId: 023e105f4ecef8ad9ca31a8372d0c353
keyRotationIntervalDays: 30
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 string
- The unique name of the resource.
- args ZeroTrustAccessKeyConfigurationArgs
- 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 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 string
- The unique name of the resource.
- args ZeroTrustAccessKeyConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustAccessKeyConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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,
});
example, err := cloudflare.NewZeroTrustAccessKeyConfiguration(ctx, "zeroTrustAccessKeyConfigurationResource", &cloudflare.ZeroTrustAccessKeyConfigurationArgs{
AccountId: pulumi.String("string"),
KeyRotationIntervalDays: pulumi.Float64(0),
})
var zeroTrustAccessKeyConfigurationResource = new ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource", ZeroTrustAccessKeyConfigurationArgs.builder()
.accountId("string")
.keyRotationIntervalDays(0)
.build());
zero_trust_access_key_configuration_resource = cloudflare.ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource",
account_id="string",
key_rotation_interval_days=0)
const zeroTrustAccessKeyConfigurationResource = new cloudflare.ZeroTrustAccessKeyConfiguration("zeroTrustAccessKeyConfigurationResource", {
accountId: "string",
keyRotationIntervalDays: 0,
});
type: cloudflare:ZeroTrustAccessKeyConfiguration
properties:
accountId: string
keyRotationIntervalDays: 0
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:
- Account
Id string - Identifier.
- Key
Rotation doubleInterval Days - The number of days between key rotations.
- Account
Id string - Identifier.
- Key
Rotation float64Interval Days - The number of days between key rotations.
- account
Id String - Identifier.
- key
Rotation DoubleInterval Days - The number of days between key rotations.
- account
Id string - Identifier.
- key
Rotation numberInterval Days - The number of days between key rotations.
- account_
id str - Identifier.
- key_
rotation_ floatinterval_ days - The number of days between key rotations.
- account
Id String - Identifier.
- key
Rotation NumberInterval Days - 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:
- Days
Until doubleNext Rotation - The number of days until the next key rotation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Key stringRotation At - The timestamp of the previous key rotation.
- Days
Until float64Next Rotation - The number of days until the next key rotation.
- Id string
- The provider-assigned unique ID for this managed resource.
- Last
Key stringRotation At - The timestamp of the previous key rotation.
- days
Until DoubleNext Rotation - The number of days until the next key rotation.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Key StringRotation At - The timestamp of the previous key rotation.
- days
Until numberNext Rotation - The number of days until the next key rotation.
- id string
- The provider-assigned unique ID for this managed resource.
- last
Key stringRotation At - The timestamp of the previous key rotation.
- days_
until_ floatnext_ rotation - The number of days until the next key rotation.
- id str
- The provider-assigned unique ID for this managed resource.
- last_
key_ strrotation_ at - The timestamp of the previous key rotation.
- days
Until NumberNext Rotation - The number of days until the next key rotation.
- id String
- The provider-assigned unique ID for this managed resource.
- last
Key StringRotation At - 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
- 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 - Identifier.
- Days
Until doubleNext Rotation - The number of days until the next key rotation.
- Key
Rotation doubleInterval Days - The number of days between key rotations.
- Last
Key stringRotation At - The timestamp of the previous key rotation.
- Account
Id string - Identifier.
- Days
Until float64Next Rotation - The number of days until the next key rotation.
- Key
Rotation float64Interval Days - The number of days between key rotations.
- Last
Key stringRotation At - The timestamp of the previous key rotation.
- account
Id String - Identifier.
- days
Until DoubleNext Rotation - The number of days until the next key rotation.
- key
Rotation DoubleInterval Days - The number of days between key rotations.
- last
Key StringRotation At - The timestamp of the previous key rotation.
- account
Id string - Identifier.
- days
Until numberNext Rotation - The number of days until the next key rotation.
- key
Rotation numberInterval Days - The number of days between key rotations.
- last
Key stringRotation At - The timestamp of the previous key rotation.
- account_
id str - Identifier.
- days_
until_ floatnext_ rotation - The number of days until the next key rotation.
- key_
rotation_ floatinterval_ days - The number of days between key rotations.
- last_
key_ strrotation_ at - The timestamp of the previous key rotation.
- account
Id String - Identifier.
- days
Until NumberNext Rotation - The number of days until the next key rotation.
- key
Rotation NumberInterval Days - The number of days between key rotations.
- last
Key StringRotation At - The timestamp of the previous key rotation.
Import
$ pulumi import cloudflare:index/zeroTrustAccessKeyConfiguration:ZeroTrustAccessKeyConfiguration example '<account_id>'
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.