cloudflare.ZeroTrustAccessShortLivedCertificate
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleZeroTrustAccessShortLivedCertificate = new cloudflare.ZeroTrustAccessShortLivedCertificate("example_zero_trust_access_short_lived_certificate", {
appId: "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
zoneId: "zone_id",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_zero_trust_access_short_lived_certificate = cloudflare.ZeroTrustAccessShortLivedCertificate("example_zero_trust_access_short_lived_certificate",
app_id="f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
zone_id="zone_id")
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.NewZeroTrustAccessShortLivedCertificate(ctx, "example_zero_trust_access_short_lived_certificate", &cloudflare.ZeroTrustAccessShortLivedCertificateArgs{
AppId: pulumi.String("f174e90a-fafe-4643-bbbc-4a0ed4fc8415"),
ZoneId: pulumi.String("zone_id"),
})
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 exampleZeroTrustAccessShortLivedCertificate = new Cloudflare.ZeroTrustAccessShortLivedCertificate("example_zero_trust_access_short_lived_certificate", new()
{
AppId = "f174e90a-fafe-4643-bbbc-4a0ed4fc8415",
ZoneId = "zone_id",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.ZeroTrustAccessShortLivedCertificate;
import com.pulumi.cloudflare.ZeroTrustAccessShortLivedCertificateArgs;
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 exampleZeroTrustAccessShortLivedCertificate = new ZeroTrustAccessShortLivedCertificate("exampleZeroTrustAccessShortLivedCertificate", ZeroTrustAccessShortLivedCertificateArgs.builder()
.appId("f174e90a-fafe-4643-bbbc-4a0ed4fc8415")
.zoneId("zone_id")
.build());
}
}
resources:
exampleZeroTrustAccessShortLivedCertificate:
type: cloudflare:ZeroTrustAccessShortLivedCertificate
name: example_zero_trust_access_short_lived_certificate
properties:
appId: f174e90a-fafe-4643-bbbc-4a0ed4fc8415
zoneId: zone_id
Create ZeroTrustAccessShortLivedCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ZeroTrustAccessShortLivedCertificate(name: string, args: ZeroTrustAccessShortLivedCertificateArgs, opts?: CustomResourceOptions);
@overload
def ZeroTrustAccessShortLivedCertificate(resource_name: str,
args: ZeroTrustAccessShortLivedCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ZeroTrustAccessShortLivedCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
account_id: Optional[str] = None,
zone_id: Optional[str] = None)
func NewZeroTrustAccessShortLivedCertificate(ctx *Context, name string, args ZeroTrustAccessShortLivedCertificateArgs, opts ...ResourceOption) (*ZeroTrustAccessShortLivedCertificate, error)
public ZeroTrustAccessShortLivedCertificate(string name, ZeroTrustAccessShortLivedCertificateArgs args, CustomResourceOptions? opts = null)
public ZeroTrustAccessShortLivedCertificate(String name, ZeroTrustAccessShortLivedCertificateArgs args)
public ZeroTrustAccessShortLivedCertificate(String name, ZeroTrustAccessShortLivedCertificateArgs args, CustomResourceOptions options)
type: cloudflare:ZeroTrustAccessShortLivedCertificate
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 ZeroTrustAccessShortLivedCertificateArgs
- 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 ZeroTrustAccessShortLivedCertificateArgs
- 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 ZeroTrustAccessShortLivedCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ZeroTrustAccessShortLivedCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ZeroTrustAccessShortLivedCertificateArgs
- 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 zeroTrustAccessShortLivedCertificateResource = new Cloudflare.ZeroTrustAccessShortLivedCertificate("zeroTrustAccessShortLivedCertificateResource", new()
{
AppId = "string",
AccountId = "string",
ZoneId = "string",
});
example, err := cloudflare.NewZeroTrustAccessShortLivedCertificate(ctx, "zeroTrustAccessShortLivedCertificateResource", &cloudflare.ZeroTrustAccessShortLivedCertificateArgs{
AppId: pulumi.String("string"),
AccountId: pulumi.String("string"),
ZoneId: pulumi.String("string"),
})
var zeroTrustAccessShortLivedCertificateResource = new ZeroTrustAccessShortLivedCertificate("zeroTrustAccessShortLivedCertificateResource", ZeroTrustAccessShortLivedCertificateArgs.builder()
.appId("string")
.accountId("string")
.zoneId("string")
.build());
zero_trust_access_short_lived_certificate_resource = cloudflare.ZeroTrustAccessShortLivedCertificate("zeroTrustAccessShortLivedCertificateResource",
app_id="string",
account_id="string",
zone_id="string")
const zeroTrustAccessShortLivedCertificateResource = new cloudflare.ZeroTrustAccessShortLivedCertificate("zeroTrustAccessShortLivedCertificateResource", {
appId: "string",
accountId: "string",
zoneId: "string",
});
type: cloudflare:ZeroTrustAccessShortLivedCertificate
properties:
accountId: string
appId: string
zoneId: string
ZeroTrustAccessShortLivedCertificate 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 ZeroTrustAccessShortLivedCertificate resource accepts the following input properties:
- app_
id str - UUID.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Outputs
All input properties are implicitly available as output properties. Additionally, the ZeroTrustAccessShortLivedCertificate resource produces the following output properties:
- aud str
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- id str
- The provider-assigned unique ID for this managed resource.
- public_
key str - The public key to add to your SSH server configuration.
Look up Existing ZeroTrustAccessShortLivedCertificate Resource
Get an existing ZeroTrustAccessShortLivedCertificate 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?: ZeroTrustAccessShortLivedCertificateState, opts?: CustomResourceOptions): ZeroTrustAccessShortLivedCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
app_id: Optional[str] = None,
aud: Optional[str] = None,
public_key: Optional[str] = None,
zone_id: Optional[str] = None) -> ZeroTrustAccessShortLivedCertificate
func GetZeroTrustAccessShortLivedCertificate(ctx *Context, name string, id IDInput, state *ZeroTrustAccessShortLivedCertificateState, opts ...ResourceOption) (*ZeroTrustAccessShortLivedCertificate, error)
public static ZeroTrustAccessShortLivedCertificate Get(string name, Input<string> id, ZeroTrustAccessShortLivedCertificateState? state, CustomResourceOptions? opts = null)
public static ZeroTrustAccessShortLivedCertificate get(String name, Output<String> id, ZeroTrustAccessShortLivedCertificateState state, CustomResourceOptions options)
resources: _: type: cloudflare:ZeroTrustAccessShortLivedCertificate 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 - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- App
Id string - UUID.
- Aud string
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- Public
Key string - The public key to add to your SSH server configuration.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- Account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- App
Id string - UUID.
- Aud string
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- Public
Key string - The public key to add to your SSH server configuration.
- Zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- app
Id String - UUID.
- aud String
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- public
Key String - The public key to add to your SSH server configuration.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id string - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- app
Id string - UUID.
- aud string
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- public
Key string - The public key to add to your SSH server configuration.
- zone
Id string - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account_
id str - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- app_
id str - UUID.
- aud str
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- public_
key str - The public key to add to your SSH server configuration.
- zone_
id str - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
- account
Id String - The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.
- app
Id String - UUID.
- aud String
- The Application Audience (AUD) tag. Identifies the application associated with the CA.
- public
Key String - The public key to add to your SSH server configuration.
- zone
Id String - The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.
Import
$ pulumi import cloudflare:index/zeroTrustAccessShortLivedCertificate:ZeroTrustAccessShortLivedCertificate example '<{accounts|zones}/{account_id|zone_id}>/<app_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.