AccessServiceToken
Access Service Tokens are used for service-to-service communication when an application is behind Cloudflare Access.
Example Usage
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
class MyStack : Stack
{
public MyStack()
{
var myApp = new Cloudflare.AccessServiceToken("myApp", new Cloudflare.AccessServiceTokenArgs
{
AccountId = "d41d8cd98f00b204e9800998ecf8427e",
Name = "CI/CD app",
});
}
}
Coming soon!
import pulumi
import pulumi_cloudflare as cloudflare
my_app = cloudflare.AccessServiceToken("myApp",
account_id="d41d8cd98f00b204e9800998ecf8427e",
name="CI/CD app")import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const myApp = new cloudflare.AccessServiceToken("my_app", {
accountId: "d41d8cd98f00b204e9800998ecf8427e",
name: "CI/CD app",
});Create a AccessServiceToken Resource
new AccessServiceToken(name: string, args: AccessServiceTokenArgs, opts?: CustomResourceOptions);def AccessServiceToken(resource_name, opts=None, account_id=None, name=None, __props__=None);func NewAccessServiceToken(ctx *Context, name string, args AccessServiceTokenArgs, opts ...ResourceOption) (*AccessServiceToken, error)public AccessServiceToken(string name, AccessServiceTokenArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args AccessServiceTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args AccessServiceTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AccessServiceTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
AccessServiceToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The AccessServiceToken resource accepts the following input properties:
- account_
id str The ID of the account where the Access Service is being created.
- name str
Friendly name of the token’s intent.
Outputs
All input properties are implicitly available as output properties. Additionally, the AccessServiceToken resource produces the following output properties:
Look up an Existing AccessServiceToken Resource
Get an existing AccessServiceToken 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?: AccessServiceTokenState, opts?: CustomResourceOptions): AccessServiceTokenstatic get(resource_name, id, opts=None, account_id=None, client_id=None, client_secret=None, name=None, __props__=None);func GetAccessServiceToken(ctx *Context, name string, id IDInput, state *AccessServiceTokenState, opts ...ResourceOption) (*AccessServiceToken, error)public static AccessServiceToken Get(string name, Input<string> id, AccessServiceTokenState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- account_
id str The ID of the account where the Access Service is being created.
- client_
id str UUID client ID associated with the Service Token.
- client_
secret str A secret for interacting with Access protocols.
- name str
Friendly name of the token’s intent.
Package Details
- Repository
- https://github.com/pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.