Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firebaseappcheck/v1.DebugToken
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a new DebugToken for the specified app. For security reasons, after the creation operation completes, the token
field cannot be updated or retrieved, but you can revoke the debug token using DeleteDebugToken. Each app can have a maximum of 20 debug tokens.
Create DebugToken Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DebugToken(name: string, args: DebugTokenArgs, opts?: CustomResourceOptions);
@overload
def DebugToken(resource_name: str,
args: DebugTokenArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DebugToken(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
display_name: Optional[str] = None,
token: Optional[str] = None,
name: Optional[str] = None,
project: Optional[str] = None)
func NewDebugToken(ctx *Context, name string, args DebugTokenArgs, opts ...ResourceOption) (*DebugToken, error)
public DebugToken(string name, DebugTokenArgs args, CustomResourceOptions? opts = null)
public DebugToken(String name, DebugTokenArgs args)
public DebugToken(String name, DebugTokenArgs args, CustomResourceOptions options)
type: google-native:firebaseappcheck/v1:DebugToken
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 DebugTokenArgs
- 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 DebugTokenArgs
- 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 DebugTokenArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DebugTokenArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DebugTokenArgs
- 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 debugTokenResource = new GoogleNative.FirebaseAppCheck.V1.DebugToken("debugTokenResource", new()
{
AppId = "string",
DisplayName = "string",
Token = "string",
Name = "string",
Project = "string",
});
example, err := firebaseappcheck.NewDebugToken(ctx, "debugTokenResource", &firebaseappcheck.DebugTokenArgs{
AppId: pulumi.String("string"),
DisplayName: pulumi.String("string"),
Token: pulumi.String("string"),
Name: pulumi.String("string"),
Project: pulumi.String("string"),
})
var debugTokenResource = new DebugToken("debugTokenResource", DebugTokenArgs.builder()
.appId("string")
.displayName("string")
.token("string")
.name("string")
.project("string")
.build());
debug_token_resource = google_native.firebaseappcheck.v1.DebugToken("debugTokenResource",
app_id="string",
display_name="string",
token="string",
name="string",
project="string")
const debugTokenResource = new google_native.firebaseappcheck.v1.DebugToken("debugTokenResource", {
appId: "string",
displayName: "string",
token: "string",
name: "string",
project: "string",
});
type: google-native:firebaseappcheck/v1:DebugToken
properties:
appId: string
displayName: string
name: string
project: string
token: string
DebugToken Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The DebugToken resource accepts the following input properties:
- App
Id string - Display
Name string - A human readable display name used to identify this debug token.
- Token string
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- Name string
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- Project string
- App
Id string - Display
Name string - A human readable display name used to identify this debug token.
- Token string
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- Name string
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- Project string
- app
Id String - display
Name String - A human readable display name used to identify this debug token.
- token String
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- name String
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- project String
- app
Id string - display
Name string - A human readable display name used to identify this debug token.
- token string
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- name string
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- project string
- app_
id str - display_
name str - A human readable display name used to identify this debug token.
- token str
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- name str
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- project str
- app
Id String - display
Name String - A human readable display name used to identify this debug token.
- token String
- Input only. Immutable. The secret token itself. Must be provided during creation, and must be a UUID4, case insensitive. This field is immutable once set, and cannot be provided during an UpdateDebugToken request. You can, however, delete this debug token using DeleteDebugToken to revoke it. For security reasons, this field will never be populated in any response.
- name String
- The relative resource name of the debug token, in the format:
projects/{project_number}/apps/{app_id}/debugTokens/{debug_token_id}
- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the DebugToken resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.