sentry.SentryKey
Explore with Pulumi AI
Sentry Key resource.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sentry from "@pulumiverse/sentry";
// Create a key
const _default = new sentry.SentryKey("default", {
organization: "my-organization",
project: "web-app",
name: "My Key",
});
import pulumi
import pulumiverse_sentry as sentry
# Create a key
default = sentry.SentryKey("default",
organization="my-organization",
project="web-app",
name="My Key")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-sentry/sdk/go/sentry"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Create a key
_, err := sentry.NewSentryKey(ctx, "default", &sentry.SentryKeyArgs{
Organization: pulumi.String("my-organization"),
Project: pulumi.String("web-app"),
Name: pulumi.String("My Key"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sentry = Pulumiverse.Sentry;
return await Deployment.RunAsync(() =>
{
// Create a key
var @default = new Sentry.SentryKey("default", new()
{
Organization = "my-organization",
Project = "web-app",
Name = "My Key",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sentry.SentryKey;
import com.pulumi.sentry.SentryKeyArgs;
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) {
// Create a key
var default_ = new SentryKey("default", SentryKeyArgs.builder()
.organization("my-organization")
.project("web-app")
.name("My Key")
.build());
}
}
resources:
# Create a key
default:
type: sentry:SentryKey
properties:
organization: my-organization
project: web-app
name: My Key
Create SentryKey Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SentryKey(name: string, args: SentryKeyArgs, opts?: CustomResourceOptions);
@overload
def SentryKey(resource_name: str,
args: SentryKeyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SentryKey(resource_name: str,
opts: Optional[ResourceOptions] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
name: Optional[str] = None,
rate_limit_count: Optional[int] = None,
rate_limit_window: Optional[int] = None)
func NewSentryKey(ctx *Context, name string, args SentryKeyArgs, opts ...ResourceOption) (*SentryKey, error)
public SentryKey(string name, SentryKeyArgs args, CustomResourceOptions? opts = null)
public SentryKey(String name, SentryKeyArgs args)
public SentryKey(String name, SentryKeyArgs args, CustomResourceOptions options)
type: sentry:SentryKey
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 SentryKeyArgs
- 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 SentryKeyArgs
- 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 SentryKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SentryKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SentryKeyArgs
- 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 sentryKeyResource = new Sentry.SentryKey("sentryKeyResource", new()
{
Organization = "string",
Project = "string",
Name = "string",
RateLimitCount = 0,
RateLimitWindow = 0,
});
example, err := sentry.NewSentryKey(ctx, "sentryKeyResource", &sentry.SentryKeyArgs{
Organization: pulumi.String("string"),
Project: pulumi.String("string"),
Name: pulumi.String("string"),
RateLimitCount: pulumi.Int(0),
RateLimitWindow: pulumi.Int(0),
})
var sentryKeyResource = new SentryKey("sentryKeyResource", SentryKeyArgs.builder()
.organization("string")
.project("string")
.name("string")
.rateLimitCount(0)
.rateLimitWindow(0)
.build());
sentry_key_resource = sentry.SentryKey("sentryKeyResource",
organization="string",
project="string",
name="string",
rate_limit_count=0,
rate_limit_window=0)
const sentryKeyResource = new sentry.SentryKey("sentryKeyResource", {
organization: "string",
project: "string",
name: "string",
rateLimitCount: 0,
rateLimitWindow: 0,
});
type: sentry:SentryKey
properties:
name: string
organization: string
project: string
rateLimitCount: 0
rateLimitWindow: 0
SentryKey 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 SentryKey resource accepts the following input properties:
- Organization string
- The slug of the organization the key should be created for.
- Project string
- The slug of the project the key should be created for.
- Name string
- The name of the key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - Length of time that will be considered when checking the rate limit.
- Organization string
- The slug of the organization the key should be created for.
- Project string
- The slug of the project the key should be created for.
- Name string
- The name of the key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - Length of time that will be considered when checking the rate limit.
- organization String
- The slug of the organization the key should be created for.
- project String
- The slug of the project the key should be created for.
- name String
- The name of the key.
- rate
Limit IntegerCount - Number of events that can be reported within the rate limit window.
- rate
Limit IntegerWindow - Length of time that will be considered when checking the rate limit.
- organization string
- The slug of the organization the key should be created for.
- project string
- The slug of the project the key should be created for.
- name string
- The name of the key.
- rate
Limit numberCount - Number of events that can be reported within the rate limit window.
- rate
Limit numberWindow - Length of time that will be considered when checking the rate limit.
- organization str
- The slug of the organization the key should be created for.
- project str
- The slug of the project the key should be created for.
- name str
- The name of the key.
- rate_
limit_ intcount - Number of events that can be reported within the rate limit window.
- rate_
limit_ intwindow - Length of time that will be considered when checking the rate limit.
- organization String
- The slug of the organization the key should be created for.
- project String
- The slug of the project the key should be created for.
- name String
- The name of the key.
- rate
Limit NumberCount - Number of events that can be reported within the rate limit window.
- rate
Limit NumberWindow - Length of time that will be considered when checking the rate limit.
Outputs
All input properties are implicitly available as output properties. Additionally, the SentryKey resource produces the following output properties:
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Active bool - Flag indicating the key is active.
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Secret string
- Secret key portion of the client key.
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - Id string
- The provider-assigned unique ID for this managed resource.
- Is
Active bool - Flag indicating the key is active.
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Secret string
- Secret key portion of the client key.
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - id String
- The provider-assigned unique ID for this managed resource.
- is
Active Boolean - Flag indicating the key is active.
- project
Id Integer - The ID of the project that the key belongs to.
- public_ String
- Public key portion of the client key.
- secret String
- Secret key portion of the client key.
- dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public string - DSN for the key.
- dsn
Secret string - id string
- The provider-assigned unique ID for this managed resource.
- is
Active boolean - Flag indicating the key is active.
- project
Id number - The ID of the project that the key belongs to.
- public string
- Public key portion of the client key.
- secret string
- Secret key portion of the client key.
- dsn_
csp str - DSN for the Content Security Policy (CSP) for the key.
- dsn_
public str - DSN for the key.
- dsn_
secret str - id str
- The provider-assigned unique ID for this managed resource.
- is_
active bool - Flag indicating the key is active.
- project_
id int - The ID of the project that the key belongs to.
- public str
- Public key portion of the client key.
- secret str
- Secret key portion of the client key.
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - id String
- The provider-assigned unique ID for this managed resource.
- is
Active Boolean - Flag indicating the key is active.
- project
Id Number - The ID of the project that the key belongs to.
- public String
- Public key portion of the client key.
- secret String
- Secret key portion of the client key.
Look up Existing SentryKey Resource
Get an existing SentryKey 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?: SentryKeyState, opts?: CustomResourceOptions): SentryKey
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
dsn_csp: Optional[str] = None,
dsn_public: Optional[str] = None,
dsn_secret: Optional[str] = None,
is_active: Optional[bool] = None,
name: Optional[str] = None,
organization: Optional[str] = None,
project: Optional[str] = None,
project_id: Optional[int] = None,
public: Optional[str] = None,
rate_limit_count: Optional[int] = None,
rate_limit_window: Optional[int] = None,
secret: Optional[str] = None) -> SentryKey
func GetSentryKey(ctx *Context, name string, id IDInput, state *SentryKeyState, opts ...ResourceOption) (*SentryKey, error)
public static SentryKey Get(string name, Input<string> id, SentryKeyState? state, CustomResourceOptions? opts = null)
public static SentryKey get(String name, Output<String> id, SentryKeyState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - Is
Active bool - Flag indicating the key is active.
- Name string
- The name of the key.
- Organization string
- The slug of the organization the key should be created for.
- Project string
- The slug of the project the key should be created for.
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - Length of time that will be considered when checking the rate limit.
- Secret string
- Secret key portion of the client key.
- Dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- Dsn
Public string - DSN for the key.
- Dsn
Secret string - Is
Active bool - Flag indicating the key is active.
- Name string
- The name of the key.
- Organization string
- The slug of the organization the key should be created for.
- Project string
- The slug of the project the key should be created for.
- Project
Id int - The ID of the project that the key belongs to.
- Public string
- Public key portion of the client key.
- Rate
Limit intCount - Number of events that can be reported within the rate limit window.
- Rate
Limit intWindow - Length of time that will be considered when checking the rate limit.
- Secret string
- Secret key portion of the client key.
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - is
Active Boolean - Flag indicating the key is active.
- name String
- The name of the key.
- organization String
- The slug of the organization the key should be created for.
- project String
- The slug of the project the key should be created for.
- project
Id Integer - The ID of the project that the key belongs to.
- public_ String
- Public key portion of the client key.
- rate
Limit IntegerCount - Number of events that can be reported within the rate limit window.
- rate
Limit IntegerWindow - Length of time that will be considered when checking the rate limit.
- secret String
- Secret key portion of the client key.
- dsn
Csp string - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public string - DSN for the key.
- dsn
Secret string - is
Active boolean - Flag indicating the key is active.
- name string
- The name of the key.
- organization string
- The slug of the organization the key should be created for.
- project string
- The slug of the project the key should be created for.
- project
Id number - The ID of the project that the key belongs to.
- public string
- Public key portion of the client key.
- rate
Limit numberCount - Number of events that can be reported within the rate limit window.
- rate
Limit numberWindow - Length of time that will be considered when checking the rate limit.
- secret string
- Secret key portion of the client key.
- dsn_
csp str - DSN for the Content Security Policy (CSP) for the key.
- dsn_
public str - DSN for the key.
- dsn_
secret str - is_
active bool - Flag indicating the key is active.
- name str
- The name of the key.
- organization str
- The slug of the organization the key should be created for.
- project str
- The slug of the project the key should be created for.
- project_
id int - The ID of the project that the key belongs to.
- public str
- Public key portion of the client key.
- rate_
limit_ intcount - Number of events that can be reported within the rate limit window.
- rate_
limit_ intwindow - Length of time that will be considered when checking the rate limit.
- secret str
- Secret key portion of the client key.
- dsn
Csp String - DSN for the Content Security Policy (CSP) for the key.
- dsn
Public String - DSN for the key.
- dsn
Secret String - is
Active Boolean - Flag indicating the key is active.
- name String
- The name of the key.
- organization String
- The slug of the organization the key should be created for.
- project String
- The slug of the project the key should be created for.
- project
Id Number - The ID of the project that the key belongs to.
- public String
- Public key portion of the client key.
- rate
Limit NumberCount - Number of events that can be reported within the rate limit window.
- rate
Limit NumberWindow - Length of time that will be considered when checking the rate limit.
- secret String
- Secret key portion of the client key.
Import
import using the organization, project slugs and key id from the URL:
https://sentry.io/settings/[org-slug]/projects/[project-slug]/keys/[key-id]/
$ pulumi import sentry:index/sentryKey:SentryKey default org-slug/project-slug/key-id
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sentry pulumiverse/pulumi-sentry
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
sentry
Terraform Provider.