cloudflare.AccessKeysConfiguration
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 AccessKeysConfiguration Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AccessKeysConfiguration(name: string, args: AccessKeysConfigurationArgs, opts?: CustomResourceOptions);
@overload
def AccessKeysConfiguration(resource_name: str,
args: AccessKeysConfigurationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AccessKeysConfiguration(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
key_rotation_interval_days: Optional[float] = None)
func NewAccessKeysConfiguration(ctx *Context, name string, args AccessKeysConfigurationArgs, opts ...ResourceOption) (*AccessKeysConfiguration, error)
public AccessKeysConfiguration(string name, AccessKeysConfigurationArgs args, CustomResourceOptions? opts = null)
public AccessKeysConfiguration(String name, AccessKeysConfigurationArgs args)
public AccessKeysConfiguration(String name, AccessKeysConfigurationArgs args, CustomResourceOptions options)
type: cloudflare:AccessKeysConfiguration
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 AccessKeysConfigurationArgs
- 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 AccessKeysConfigurationArgs
- 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 AccessKeysConfigurationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessKeysConfigurationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AccessKeysConfigurationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AccessKeysConfiguration 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 AccessKeysConfiguration 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 AccessKeysConfiguration 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 AccessKeysConfiguration Resource
Get an existing AccessKeysConfiguration 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?: AccessKeysConfigurationState, opts?: CustomResourceOptions): AccessKeysConfiguration
@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) -> AccessKeysConfiguration
func GetAccessKeysConfiguration(ctx *Context, name string, id IDInput, state *AccessKeysConfigurationState, opts ...ResourceOption) (*AccessKeysConfiguration, error)
public static AccessKeysConfiguration Get(string name, Input<string> id, AccessKeysConfigurationState? state, CustomResourceOptions? opts = null)
public static AccessKeysConfiguration get(String name, Output<String> id, AccessKeysConfigurationState state, CustomResourceOptions options)
resources: _: type: cloudflare:AccessKeysConfiguration 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/accessKeysConfiguration:AccessKeysConfiguration 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.