Package com.pulumi.cloudflare
Class AccessCaCertificate
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.cloudflare.AccessCaCertificate
-
public class AccessCaCertificate extends com.pulumi.resources.CustomResource
Cloudflare Access can replace traditional SSH key models with short-lived certificates issued to your users based on the token generated by their Access login. > It's required that an `account_id` or `zone_id` is provided and in most cases using either is fine. However, if you're using a scoped access token, you must provide the argument that matches the token's scope. For example, an access token that is scoped to the "example.com" zone needs to use the `zone_id` argument. ## Example Usage ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.cloudflare.AccessCaCertificate; import com.pulumi.cloudflare.AccessCaCertificateArgs; 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 example = new AccessCaCertificate("example", AccessCaCertificateArgs.builder() .accountId("f037e56e89293a057740de681ac9abbe") .applicationId("6cd6cea3-3ef2-4542-9aea-85a0bbcd5414") .build()); var anotherExample = new AccessCaCertificate("anotherExample", AccessCaCertificateArgs.builder() .applicationId("fe2be0ff-7f13-4350-8c8e-a9b9795fe3c2") .zoneId("0da42c8d2132a9ddaf714f9e7c920711") .build()); } } ``` ## Import Account level CA certificate import. ```sh $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<account_id>/<application_id> ``` Zone level CA certificate import. ```sh $ pulumi import cloudflare:index/accessCaCertificate:AccessCaCertificate example account/<zone_id>/<application_id> ```
-
-
Constructor Summary
Constructors Constructor Description AccessCaCertificate(java.lang.String name)
AccessCaCertificate(java.lang.String name, AccessCaCertificateArgs args)
AccessCaCertificate(java.lang.String name, AccessCaCertificateArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.lang.String>
accountId()
com.pulumi.core.Output<java.lang.String>
applicationId()
com.pulumi.core.Output<java.lang.String>
aud()
static AccessCaCertificate
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, AccessCaCertificateState state, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.lang.String>
publicKey()
com.pulumi.core.Output<java.lang.String>
zoneId()
-
-
-
Constructor Detail
-
AccessCaCertificate
public AccessCaCertificate(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
AccessCaCertificate
public AccessCaCertificate(java.lang.String name, AccessCaCertificateArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
AccessCaCertificate
public AccessCaCertificate(java.lang.String name, AccessCaCertificateArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
accountId
public com.pulumi.core.Output<java.lang.String> accountId()
- Returns:
- The account identifier to target for the resource. Conflicts with `zone_id`.
-
applicationId
public com.pulumi.core.Output<java.lang.String> applicationId()
- Returns:
- The Access Application ID to associate with the CA certificate.
-
aud
public com.pulumi.core.Output<java.lang.String> aud()
- Returns:
- Application Audience (AUD) Tag of the CA certificate.
-
publicKey
public com.pulumi.core.Output<java.lang.String> publicKey()
- Returns:
- Cryptographic public key of the generated CA certificate.
-
zoneId
public com.pulumi.core.Output<java.lang.String> zoneId()
- Returns:
- The zone identifier to target for the resource. Conflicts with `account_id`.
-
get
public static AccessCaCertificate get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable AccessCaCertificateState state, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.state
-options
- Optional settings to control the behavior of the CustomResource.
-
-