Represents a {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs github}.
import com.hashicorp.cdktf.providers.github.provider.GithubProvider;
GithubProvider.Builder.create(Construct scope, java.lang.String id)
// .alias(java.lang.String)
// .appAuth(GithubProviderAppAuth)
// .baseUrl(java.lang.String)
// .insecure(java.lang.Boolean)
// .insecure(IResolvable)
// .maxRetries(java.lang.Number)
// .organization(java.lang.String)
// .owner(java.lang.String)
// .parallelRequests(java.lang.Boolean)
// .parallelRequests(IResolvable)
// .readDelayMs(java.lang.Number)
// .retryableErrors(java.util.List<java.lang.Number>)
// .retryDelayMs(java.lang.Number)
// .token(java.lang.String)
// .writeDelayMs(java.lang.Number)
.build();
Name | Type | Description |
---|---|---|
scope |
software.constructs.Construct |
The scope in which to define this construct. |
id |
java.lang.String |
The scoped construct ID. |
alias |
java.lang.String |
Alias name. |
appAuth |
GithubProviderAppAuth |
app_auth block. |
baseUrl |
java.lang.String |
The GitHub Base API URL. |
insecure |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
Enable insecure mode for testing purposes. |
maxRetries |
java.lang.Number |
Number of times to retry a request after receiving an error status codeDefaults to 3. |
organization |
java.lang.String |
The GitHub organization name to manage. Use this field instead of owner when managing organization accounts. |
owner |
java.lang.String |
The GitHub owner name to manage. Use this field instead of organization when managing individual accounts. |
parallelRequests |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
Allow the provider to make parallel API calls to GitHub. |
readDelayMs |
java.lang.Number |
Amount of time in milliseconds to sleep in between non-write requests to GitHub API. |
retryableErrors |
java.util.List<java.lang.Number> |
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 |
java.lang.Number |
Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. |
token |
java.lang.String |
The OAuth token used to connect to GitHub. |
writeDelayMs |
java.lang.Number |
Amount of time in milliseconds to sleep in between writes to GitHub API. |
- Type: software.constructs.Construct
The scope in which to define this construct.
- Type: java.lang.String
The scoped construct ID.
Must be unique amongst siblings in the same scope
- Type: java.lang.String
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#alias GithubProvider#alias}
- Type: GithubProviderAppAuth
app_auth block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#app_auth GithubProvider#app_auth}
- Type: java.lang.String
The GitHub Base API URL.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#base_url GithubProvider#base_url}
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
Enable insecure
mode for testing purposes.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#insecure GithubProvider#insecure}
- Type: java.lang.Number
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.6.0/docs#max_retries GithubProvider#max_retries}
- Type: java.lang.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.6.0/docs#organization GithubProvider#organization}
- Type: java.lang.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.6.0/docs#owner GithubProvider#owner}
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
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.6.0/docs#parallel_requests GithubProvider#parallel_requests}
- Type: java.lang.Number
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.6.0/docs#read_delay_ms GithubProvider#read_delay_ms}
- Type: java.util.List<java.lang.Number>
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.6.0/docs#retryable_errors GithubProvider#retryable_errors}
- Type: java.lang.Number
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.6.0/docs#retry_delay_ms GithubProvider#retry_delay_ms}
- Type: java.lang.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.6.0/docs#token GithubProvider#token}
- Type: java.lang.Number
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.6.0/docs#write_delay_ms GithubProvider#write_delay_ms}
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. |
public java.lang.String toString()
Returns a string representation of this construct.
public void addOverride(java.lang.String path, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
public void overrideLogicalId(java.lang.String newLogicalId)
Overrides the auto-generated logical ID with a specific ID.
- Type: java.lang.String
The new logical ID to use for this stack element.
public void resetOverrideLogicalId()
Resets a previously passed logical Id to use the auto-generated logical id again.
public java.lang.Object toHclTerraform()
public java.lang.Object toMetadata()
public java.lang.Object toTerraform()
Adds this resource to the terraform JSON output.
public void resetAlias()
public void resetAppAuth()
public void resetBaseUrl()
public void resetInsecure()
public void resetMaxRetries()
public void resetOrganization()
public void resetOwner()
public void resetParallelRequests()
public void resetReadDelayMs()
public void resetRetryableErrors()
public void resetRetryDelayMs()
public void resetToken()
public 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 ". |
import com.hashicorp.cdktf.providers.github.provider.GithubProvider;
GithubProvider.isConstruct(java.lang.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: java.lang.Object
Any object.
import com.hashicorp.cdktf.providers.github.provider.GithubProvider;
GithubProvider.isTerraformElement(java.lang.Object x)
- Type: java.lang.Object
import com.hashicorp.cdktf.providers.github.provider.GithubProvider;
GithubProvider.isTerraformProvider(java.lang.Object x)
- Type: java.lang.Object
import com.hashicorp.cdktf.providers.github.provider.GithubProvider;
GithubProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId),GithubProvider.generateConfigForImport(Construct scope, java.lang.String importToId, java.lang.String importFromId, TerraformProvider provider)
Generates CDKTF code for importing a GithubProvider resource upon running "cdktf plan ".
- Type: software.constructs.Construct
The scope in which to define this construct.
- Type: java.lang.String
The construct id used in the generated config for the GithubProvider to import.
- Type: java.lang.String
The id of the existing GithubProvider that should be imported.
Refer to the {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#import import section} in the documentation of this resource for the id to use
- Type: com.hashicorp.cdktf.TerraformProvider
? Optional instance of the provider where the GithubProvider to import is found.
Name | Type | Description |
---|---|---|
node |
software.constructs.Node |
The tree node. |
cdktfStack |
com.hashicorp.cdktf.TerraformStack |
No description. |
fqn |
java.lang.String |
No description. |
friendlyUniqueId |
java.lang.String |
No description. |
metaAttributes |
java.util.Map<java.lang.String, java.lang.Object> |
No description. |
terraformResourceType |
java.lang.String |
No description. |
terraformGeneratorMetadata |
com.hashicorp.cdktf.TerraformProviderGeneratorMetadata |
No description. |
terraformProviderSource |
java.lang.String |
No description. |
alias |
java.lang.String |
No description. |
aliasInput |
java.lang.String |
No description. |
appAuthInput |
GithubProviderAppAuth |
No description. |
baseUrlInput |
java.lang.String |
No description. |
insecureInput |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
No description. |
maxRetriesInput |
java.lang.Number |
No description. |
organizationInput |
java.lang.String |
No description. |
ownerInput |
java.lang.String |
No description. |
parallelRequestsInput |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
No description. |
readDelayMsInput |
java.lang.Number |
No description. |
retryableErrorsInput |
java.util.List<java.lang.Number> |
No description. |
retryDelayMsInput |
java.lang.Number |
No description. |
tokenInput |
java.lang.String |
No description. |
writeDelayMsInput |
java.lang.Number |
No description. |
appAuth |
GithubProviderAppAuth |
No description. |
baseUrl |
java.lang.String |
No description. |
insecure |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
No description. |
maxRetries |
java.lang.Number |
No description. |
organization |
java.lang.String |
No description. |
owner |
java.lang.String |
No description. |
parallelRequests |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
No description. |
readDelayMs |
java.lang.Number |
No description. |
retryableErrors |
java.util.List<java.lang.Number> |
No description. |
retryDelayMs |
java.lang.Number |
No description. |
token |
java.lang.String |
No description. |
writeDelayMs |
java.lang.Number |
No description. |
public Node getNode();
- Type: software.constructs.Node
The tree node.
public TerraformStack getCdktfStack();
- Type: com.hashicorp.cdktf.TerraformStack
public java.lang.String getFqn();
- Type: java.lang.String
public java.lang.String getFriendlyUniqueId();
- Type: java.lang.String
public java.util.Map<java.lang.String, java.lang.Object> getMetaAttributes();
- Type: java.util.Map<java.lang.String, java.lang.Object>
public java.lang.String getTerraformResourceType();
- Type: java.lang.String
public TerraformProviderGeneratorMetadata getTerraformGeneratorMetadata();
- Type: com.hashicorp.cdktf.TerraformProviderGeneratorMetadata
public java.lang.String getTerraformProviderSource();
- Type: java.lang.String
public java.lang.String getAlias();
- Type: java.lang.String
public java.lang.String getAliasInput();
- Type: java.lang.String
public GithubProviderAppAuth getAppAuthInput();
- Type: GithubProviderAppAuth
public java.lang.String getBaseUrlInput();
- Type: java.lang.String
public java.lang.Object getInsecureInput();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
public java.lang.Number getMaxRetriesInput();
- Type: java.lang.Number
public java.lang.String getOrganizationInput();
- Type: java.lang.String
public java.lang.String getOwnerInput();
- Type: java.lang.String
public java.lang.Object getParallelRequestsInput();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
public java.lang.Number getReadDelayMsInput();
- Type: java.lang.Number
public java.util.List<java.lang.Number> getRetryableErrorsInput();
- Type: java.util.List<java.lang.Number>
public java.lang.Number getRetryDelayMsInput();
- Type: java.lang.Number
public java.lang.String getTokenInput();
- Type: java.lang.String
public java.lang.Number getWriteDelayMsInput();
- Type: java.lang.Number
public GithubProviderAppAuth getAppAuth();
- Type: GithubProviderAppAuth
public java.lang.String getBaseUrl();
- Type: java.lang.String
public java.lang.Object getInsecure();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
public java.lang.Number getMaxRetries();
- Type: java.lang.Number
public java.lang.String getOrganization();
- Type: java.lang.String
public java.lang.String getOwner();
- Type: java.lang.String
public java.lang.Object getParallelRequests();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
public java.lang.Number getReadDelayMs();
- Type: java.lang.Number
public java.util.List<java.lang.Number> getRetryableErrors();
- Type: java.util.List<java.lang.Number>
public java.lang.Number getRetryDelayMs();
- Type: java.lang.Number
public java.lang.String getToken();
- Type: java.lang.String
public java.lang.Number getWriteDelayMs();
- Type: java.lang.Number
Name | Type | Description |
---|---|---|
tfResourceType |
java.lang.String |
No description. |
public java.lang.String getTfResourceType();
- Type: java.lang.String
import com.hashicorp.cdktf.providers.github.provider.GithubProviderAppAuth;
GithubProviderAppAuth.builder()
.id(java.lang.String)
.installationId(java.lang.String)
.pemFile(java.lang.String)
.build();
Name | Type | Description |
---|---|---|
id |
java.lang.String |
The GitHub App ID. |
installationId |
java.lang.String |
The GitHub App installation instance ID. |
pemFile |
java.lang.String |
The GitHub App PEM file contents. |
public java.lang.String getId();
- Type: java.lang.String
The GitHub App ID.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.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 java.lang.String getInstallationId();
- Type: java.lang.String
The GitHub App installation instance ID.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#installation_id GithubProvider#installation_id}
public java.lang.String getPemFile();
- Type: java.lang.String
The GitHub App PEM file contents.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#pem_file GithubProvider#pem_file}
import com.hashicorp.cdktf.providers.github.provider.GithubProviderConfig;
GithubProviderConfig.builder()
// .alias(java.lang.String)
// .appAuth(GithubProviderAppAuth)
// .baseUrl(java.lang.String)
// .insecure(java.lang.Boolean)
// .insecure(IResolvable)
// .maxRetries(java.lang.Number)
// .organization(java.lang.String)
// .owner(java.lang.String)
// .parallelRequests(java.lang.Boolean)
// .parallelRequests(IResolvable)
// .readDelayMs(java.lang.Number)
// .retryableErrors(java.util.List<java.lang.Number>)
// .retryDelayMs(java.lang.Number)
// .token(java.lang.String)
// .writeDelayMs(java.lang.Number)
.build();
Name | Type | Description |
---|---|---|
alias |
java.lang.String |
Alias name. |
appAuth |
GithubProviderAppAuth |
app_auth block. |
baseUrl |
java.lang.String |
The GitHub Base API URL. |
insecure |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
Enable insecure mode for testing purposes. |
maxRetries |
java.lang.Number |
Number of times to retry a request after receiving an error status codeDefaults to 3. |
organization |
java.lang.String |
The GitHub organization name to manage. Use this field instead of owner when managing organization accounts. |
owner |
java.lang.String |
The GitHub owner name to manage. Use this field instead of organization when managing individual accounts. |
parallelRequests |
java.lang.Boolean OR com.hashicorp.cdktf.IResolvable |
Allow the provider to make parallel API calls to GitHub. |
readDelayMs |
java.lang.Number |
Amount of time in milliseconds to sleep in between non-write requests to GitHub API. |
retryableErrors |
java.util.List<java.lang.Number> |
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 |
java.lang.Number |
Amount of time in milliseconds to sleep in between requests to GitHub API after an error response. |
token |
java.lang.String |
The OAuth token used to connect to GitHub. |
writeDelayMs |
java.lang.Number |
Amount of time in milliseconds to sleep in between writes to GitHub API. |
public java.lang.String getAlias();
- Type: java.lang.String
Alias name.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#alias GithubProvider#alias}
public GithubProviderAppAuth getAppAuth();
- Type: GithubProviderAppAuth
app_auth block.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#app_auth GithubProvider#app_auth}
public java.lang.String getBaseUrl();
- Type: java.lang.String
The GitHub Base API URL.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#base_url GithubProvider#base_url}
public java.lang.Object getInsecure();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
Enable insecure
mode for testing purposes.
Docs at Terraform Registry: {@link https://registry.terraform.io/providers/integrations/github/6.6.0/docs#insecure GithubProvider#insecure}
public java.lang.Number getMaxRetries();
- Type: java.lang.Number
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.6.0/docs#max_retries GithubProvider#max_retries}
public java.lang.String getOrganization();
- Type: java.lang.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.6.0/docs#organization GithubProvider#organization}
public java.lang.String getOwner();
- Type: java.lang.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.6.0/docs#owner GithubProvider#owner}
public java.lang.Object getParallelRequests();
- Type: java.lang.Boolean OR com.hashicorp.cdktf.IResolvable
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.6.0/docs#parallel_requests GithubProvider#parallel_requests}
public java.lang.Number getReadDelayMs();
- Type: java.lang.Number
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.6.0/docs#read_delay_ms GithubProvider#read_delay_ms}
public java.util.List<java.lang.Number> getRetryableErrors();
- Type: java.util.List<java.lang.Number>
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.6.0/docs#retryable_errors GithubProvider#retryable_errors}
public java.lang.Number getRetryDelayMs();
- Type: java.lang.Number
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.6.0/docs#retry_delay_ms GithubProvider#retry_delay_ms}
public java.lang.String getToken();
- Type: java.lang.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.6.0/docs#token GithubProvider#token}
public java.lang.Number getWriteDelayMs();
- Type: java.lang.Number
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.6.0/docs#write_delay_ms GithubProvider#write_delay_ms}