Represents a {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs github}.
using HashiCorp.Cdktf.Providers.Github;
new GithubProvider(Construct Scope, string Id, GithubProviderConfig Config = null);
Name | Type | Description |
---|---|---|
Scope |
Constructs.Construct |
The scope in which to define this construct. |
Id |
string |
The scoped construct ID. |
Config |
GithubProviderConfig |
No description. |
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: GithubProviderConfig
Name | Description |
---|---|
ToString |
Returns a string representation of this construct. |
AddOverride |
No description. |
OverrideLogicalId |
Overrides the auto-generated logical ID with a specific ID. |
ResetOverrideLogicalId |
Resets a previously passed logical Id to use the auto-generated logical id again. |
ToHclTerraform |
No description. |
ToMetadata |
No description. |
ToTerraform |
Adds this resource to the terraform JSON output. |
ResetAlias |
No description. |
ResetAppAuth |
No description. |
ResetBaseUrl |
No description. |
ResetInsecure |
No description. |
ResetMaxRetries |
No description. |
ResetOrganization |
No description. |
ResetOwner |
No description. |
ResetParallelRequests |
No description. |
ResetReadDelayMs |
No description. |
ResetRetryableErrors |
No description. |
ResetRetryDelayMs |
No description. |
ResetToken |
No description. |
ResetWriteDelayMs |
No description. |
private string ToString()
Returns a string representation of this construct.
private void AddOverride(string Path, object Value)
- Type: string
- Type: object
private void OverrideLogicalId(string NewLogicalId)
Overrides the auto-generated logical ID with a specific ID.
- Type: string
The new logical ID to use for this stack element.
private void ResetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
private object ToHclTerraform()
private object ToMetadata()
private object ToTerraform()
Adds this resource to the terraform JSON output.
private void ResetAlias()
private void ResetAppAuth()
private void ResetBaseUrl()
private void ResetInsecure()
private void ResetMaxRetries()
private void ResetOrganization()
private void ResetOwner()
private void ResetParallelRequests()
private void ResetReadDelayMs()
private void ResetRetryableErrors()
private void ResetRetryDelayMs()
private void ResetToken()
private void ResetWriteDelayMs()
Name | Description |
---|---|
IsConstruct |
Checks if x is a construct. |
IsTerraformElement |
No description. |
IsTerraformProvider |
No description. |
GenerateConfigForImport |
Generates CDKTF code for importing a GithubProvider resource upon running "cdktf plan ". |
using HashiCorp.Cdktf.Providers.Github;
GithubProvider.IsConstruct(object X);
Checks if x
is a construct.
Use this method instead of instanceof
to properly detect Construct
instances, even when the construct library is symlinked.
Explanation: in JavaScript, multiple copies of the constructs
library on
disk are seen as independent, completely different libraries. As a
consequence, the class Construct
in each copy of the constructs
library
is seen as a different class, and an instance of one class will not test as
instanceof
the other class. npm install
will not create installations
like this, but users may manually symlink construct libraries together or
use a monorepo tool: in those cases, multiple copies of the constructs
library can be accidentally installed, and instanceof
will behave
unpredictably. It is safest to avoid using instanceof
, and using
this type-testing method instead.
- Type: object
Any object.
using HashiCorp.Cdktf.Providers.Github;
GithubProvider.IsTerraformElement(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Github;
GithubProvider.IsTerraformProvider(object X);
- Type: object
using HashiCorp.Cdktf.Providers.Github;
GithubProvider.GenerateConfigForImport(Construct Scope, string ImportToId, string ImportFromId, TerraformProvider Provider = null);
Generates CDKTF code for importing a GithubProvider resource upon running "cdktf plan ".
- Type: Constructs.Construct
The scope in which to define this construct.
- Type: string
The construct id used in the generated config for the GithubProvider to import.
- Type: string
The id of the existing GithubProvider that should be imported.
Refer to the {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#import import section} in the documentation of this resource for the id to use
- Type: HashiCorp.Cdktf.TerraformProvider
? Optional instance of the provider where the GithubProvider to import is found.
Name | Type | Description |
---|---|---|
Node |
Constructs.Node |
The tree node. |
CdktfStack |
HashiCorp.Cdktf.TerraformStack |
No description. |
Fqn |
string |
No description. |
FriendlyUniqueId |
string |
No description. |
MetaAttributes |
System.Collections.Generic.IDictionary<string, object> |
No description. |
TerraformResourceType |
string |
No description. |
TerraformGeneratorMetadata |
HashiCorp.Cdktf.TerraformProviderGeneratorMetadata |
No description. |
TerraformProviderSource |
string |
No description. |
Alias |
string |
No description. |
AliasInput |
string |
No description. |
AppAuthInput |
GithubProviderAppAuth |
No description. |
BaseUrlInput |
string |
No description. |
InsecureInput |
object |
No description. |
MaxRetriesInput |
double |
No description. |
OrganizationInput |
string |
No description. |
OwnerInput |
string |
No description. |
ParallelRequestsInput |
object |
No description. |
ReadDelayMsInput |
double |
No description. |
RetryableErrorsInput |
double[] |
No description. |
RetryDelayMsInput |
double |
No description. |
TokenInput |
string |
No description. |
WriteDelayMsInput |
double |
No description. |
AppAuth |
GithubProviderAppAuth |
No description. |
BaseUrl |
string |
No description. |
Insecure |
object |
No description. |
MaxRetries |
double |
No description. |
Organization |
string |
No description. |
Owner |
string |
No description. |
ParallelRequests |
object |
No description. |
ReadDelayMs |
double |
No description. |
RetryableErrors |
double[] |
No description. |
RetryDelayMs |
double |
No description. |
Token |
string |
No description. |
WriteDelayMs |
double |
No description. |
public Node Node { get; }
- Type: Constructs.Node
The tree node.
public TerraformStack CdktfStack { get; }
- Type: HashiCorp.Cdktf.TerraformStack
public string Fqn { get; }
- Type: string
public string FriendlyUniqueId { get; }
- Type: string
public System.Collections.Generic.IDictionary<string, object> MetaAttributes { get; }
- Type: System.Collections.Generic.IDictionary<string, object>
public string TerraformResourceType { get; }
- Type: string
public TerraformProviderGeneratorMetadata TerraformGeneratorMetadata { get; }
- Type: HashiCorp.Cdktf.TerraformProviderGeneratorMetadata
public string TerraformProviderSource { get; }
- Type: string
public string Alias { get; }
- Type: string
public string AliasInput { get; }
- Type: string
public GithubProviderAppAuth AppAuthInput { get; }
- Type: GithubProviderAppAuth
public string BaseUrlInput { get; }
- Type: string
public object InsecureInput { get; }
- Type: object
public double MaxRetriesInput { get; }
- Type: double
public string OrganizationInput { get; }
- Type: string
public string OwnerInput { get; }
- Type: string
public object ParallelRequestsInput { get; }
- Type: object
public double ReadDelayMsInput { get; }
- Type: double
public double[] RetryableErrorsInput { get; }
- Type: double[]
public double RetryDelayMsInput { get; }
- Type: double
public string TokenInput { get; }
- Type: string
public double WriteDelayMsInput { get; }
- Type: double
public GithubProviderAppAuth AppAuth { get; }
- Type: GithubProviderAppAuth
public string BaseUrl { get; }
- Type: string
public object Insecure { get; }
- Type: object
public double MaxRetries { get; }
- Type: double
public string Organization { get; }
- Type: string
public string Owner { get; }
- Type: string
public object ParallelRequests { get; }
- Type: object
public double ReadDelayMs { get; }
- Type: double
public double[] RetryableErrors { get; }
- Type: double[]
public double RetryDelayMs { get; }
- Type: double
public string Token { get; }
- Type: string
public double WriteDelayMs { get; }
- Type: double
Name | Type | Description |
---|---|---|
TfResourceType |
string |
No description. |
public string TfResourceType { get; }
- Type: string
using HashiCorp.Cdktf.Providers.Github;
new GithubProviderAppAuth {
string Id,
string InstallationId,
string PemFile
};
Name | Type | Description |
---|---|---|
Id |
string |
The GitHub App ID. |
InstallationId |
string |
The GitHub App installation instance ID. |
PemFile |
string |
The GitHub App PEM file contents. |
public string Id { get; set; }
- Type: string
The GitHub App ID.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#id GithubProvider#id}
Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
public string InstallationId { get; set; }
- Type: string
The GitHub App installation instance ID.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#installation_id GithubProvider#installation_id}
public string PemFile { get; set; }
- Type: string
The GitHub App PEM file contents.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#pem_file GithubProvider#pem_file}
using HashiCorp.Cdktf.Providers.Github;
new GithubProviderConfig {
string Alias = null,
GithubProviderAppAuth AppAuth = null,
string BaseUrl = null,
object Insecure = null,
double MaxRetries = null,
string Organization = null,
string Owner = null,
object ParallelRequests = null,
double ReadDelayMs = null,
double[] RetryableErrors = null,
double RetryDelayMs = null,
string Token = null,
double WriteDelayMs = null
};
Name | Type | Description |
---|---|---|
Alias |
string |
Alias name. |
AppAuth |
GithubProviderAppAuth |
app_auth block. |
BaseUrl |
string |
The GitHub Base API URL. |
Insecure |
object |
Enable insecure mode for testing purposes. |
MaxRetries |
double |
Number of times to retry a request after receiving an error status codeDefaults to 3. |
Organization |
string |
The GitHub organization name to manage. Use this field instead of owner when managing organization accounts. |
Owner |
string |
The GitHub owner name to manage. Use this field instead of organization when managing individual accounts. |
ParallelRequests |
object |
Allow the provider to make parallel API calls to GitHub. |
ReadDelayMs |
double |
Amount of time in milliseconds to sleep in between non-write requests to GitHub API. |
RetryableErrors |
double[] |
Allow the provider to retry after receiving an error status code, the max_retries should be set for this to workDefaults to [500, 502, 503, 504]. |
RetryDelayMs |
double |
Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. |
Token |
string |
The OAuth token used to connect to GitHub. |
WriteDelayMs |
double |
Amount of time in milliseconds to sleep in between writes to GitHub API. |
public string Alias { get; set; }
- Type: string
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#alias GithubProvider#alias}
public GithubProviderAppAuth AppAuth { get; set; }
- Type: GithubProviderAppAuth
app_auth block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#app_auth GithubProvider#app_auth}
public string BaseUrl { get; set; }
- Type: string
The GitHub Base API URL.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#base_url GithubProvider#base_url}
public object Insecure { get; set; }
- Type: object
Enable insecure
mode for testing purposes.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#insecure GithubProvider#insecure}
public double MaxRetries { get; set; }
- Type: double
Number of times to retry a request after receiving an error status codeDefaults to 3.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#max_retries GithubProvider#max_retries}
public string Organization { get; set; }
- Type: string
The GitHub organization name to manage. Use this field instead of owner
when managing organization accounts.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#organization GithubProvider#organization}
public string Owner { get; set; }
- Type: string
The GitHub owner name to manage. Use this field instead of organization
when managing individual accounts.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#owner GithubProvider#owner}
public object ParallelRequests { get; set; }
- Type: object
Allow the provider to make parallel API calls to GitHub.
You may want to set it to true when you have a private Github Enterprise without strict rate limits. Although, it is not possible to enable this setting on github.com because we enforce the respect of github.com's best practices to avoid hitting abuse rate limitsDefaults to false if not set
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#parallel_requests GithubProvider#parallel_requests}
public double ReadDelayMs { get; set; }
- Type: double
Amount of time in milliseconds to sleep in between non-write requests to GitHub API.
Defaults to 0ms if not set.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#read_delay_ms GithubProvider#read_delay_ms}
public double[] RetryableErrors { get; set; }
- Type: double[]
Allow the provider to retry after receiving an error status code, the max_retries should be set for this to workDefaults to [500, 502, 503, 504].
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#retryable_errors GithubProvider#retryable_errors}
public double RetryDelayMs { get; set; }
- Type: double
Amount of time in milliseconds to sleep in between requests to GitHub API after an error response.
Defaults to 1000ms or 1s if not set, the max_retries must be set to greater than zero.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#retry_delay_ms GithubProvider#retry_delay_ms}
public string Token { get; set; }
- Type: string
The OAuth token used to connect to GitHub.
Anonymous mode is enabled if both token
and app_auth
are not set.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#token GithubProvider#token}
public double WriteDelayMs { get; set; }
- Type: double
Amount of time in milliseconds to sleep in between writes to GitHub API.
Defaults to 1000ms or 1s if not set.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.5.0/docs#write_delay_ms GithubProvider#write_delay_ms}