Create AuthConfigGithubapp Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AuthConfigGithubapp(name: string, args: AuthConfigGithubappArgs, opts?: CustomResourceOptions);@overload
def AuthConfigGithubapp(resource_name: str,
args: AuthConfigGithubappArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AuthConfigGithubapp(resource_name: str,
opts: Optional[ResourceOptions] = None,
app_id: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
private_key: Optional[str] = None,
access_mode: Optional[str] = None,
allowed_principal_ids: Optional[Sequence[str]] = None,
annotations: Optional[Mapping[str, str]] = None,
enabled: Optional[bool] = None,
hostname: Optional[str] = None,
installation_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
tls: Optional[bool] = None)func NewAuthConfigGithubapp(ctx *Context, name string, args AuthConfigGithubappArgs, opts ...ResourceOption) (*AuthConfigGithubapp, error)public AuthConfigGithubapp(string name, AuthConfigGithubappArgs args, CustomResourceOptions? opts = null)
public AuthConfigGithubapp(String name, AuthConfigGithubappArgs args)
public AuthConfigGithubapp(String name, AuthConfigGithubappArgs args, CustomResourceOptions options)
type: rancher2:AuthConfigGithubapp
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 AuthConfigGithubappArgs
- 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 AuthConfigGithubappArgs
- 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 AuthConfigGithubappArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AuthConfigGithubappArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AuthConfigGithubappArgs
- 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 authConfigGithubappResource = new Rancher2.AuthConfigGithubapp("authConfigGithubappResource", new()
{
AppId = "string",
ClientId = "string",
ClientSecret = "string",
PrivateKey = "string",
AccessMode = "string",
AllowedPrincipalIds = new[]
{
"string",
},
Annotations =
{
{ "string", "string" },
},
Enabled = false,
Hostname = "string",
InstallationId = "string",
Labels =
{
{ "string", "string" },
},
Tls = false,
});
example, err := rancher2.NewAuthConfigGithubapp(ctx, "authConfigGithubappResource", &rancher2.AuthConfigGithubappArgs{
AppId: pulumi.String("string"),
ClientId: pulumi.String("string"),
ClientSecret: pulumi.String("string"),
PrivateKey: pulumi.String("string"),
AccessMode: pulumi.String("string"),
AllowedPrincipalIds: pulumi.StringArray{
pulumi.String("string"),
},
Annotations: pulumi.StringMap{
"string": pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Hostname: pulumi.String("string"),
InstallationId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Tls: pulumi.Bool(false),
})
var authConfigGithubappResource = new AuthConfigGithubapp("authConfigGithubappResource", AuthConfigGithubappArgs.builder()
.appId("string")
.clientId("string")
.clientSecret("string")
.privateKey("string")
.accessMode("string")
.allowedPrincipalIds("string")
.annotations(Map.of("string", "string"))
.enabled(false)
.hostname("string")
.installationId("string")
.labels(Map.of("string", "string"))
.tls(false)
.build());
auth_config_githubapp_resource = rancher2.AuthConfigGithubapp("authConfigGithubappResource",
app_id="string",
client_id="string",
client_secret="string",
private_key="string",
access_mode="string",
allowed_principal_ids=["string"],
annotations={
"string": "string",
},
enabled=False,
hostname="string",
installation_id="string",
labels={
"string": "string",
},
tls=False)
const authConfigGithubappResource = new rancher2.AuthConfigGithubapp("authConfigGithubappResource", {
appId: "string",
clientId: "string",
clientSecret: "string",
privateKey: "string",
accessMode: "string",
allowedPrincipalIds: ["string"],
annotations: {
string: "string",
},
enabled: false,
hostname: "string",
installationId: "string",
labels: {
string: "string",
},
tls: false,
});
type: rancher2:AuthConfigGithubapp
properties:
accessMode: string
allowedPrincipalIds:
- string
annotations:
string: string
appId: string
clientId: string
clientSecret: string
enabled: false
hostname: string
installationId: string
labels:
string: string
privateKey: string
tls: false
AuthConfigGithubapp 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 AuthConfigGithubapp resource accepts the following input properties:
- App
Id string - The GitHub App ID is provided on the GitHub apps page.
- Client
Id string - Client
Secret string - Private
Key string - PEM format private key for signing requests.
- Access
Mode string - Allowed
Principal List<string>Ids - Annotations Dictionary<string, string>
- Annotations of the resource
- Enabled bool
- Hostname string
- Installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- Labels Dictionary<string, string>
- Labels of the resource
- Tls bool
- App
Id string - The GitHub App ID is provided on the GitHub apps page.
- Client
Id string - Client
Secret string - Private
Key string - PEM format private key for signing requests.
- Access
Mode string - Allowed
Principal []stringIds - Annotations map[string]string
- Annotations of the resource
- Enabled bool
- Hostname string
- Installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- Labels map[string]string
- Labels of the resource
- Tls bool
- app
Id String - The GitHub App ID is provided on the GitHub apps page.
- client
Id String - client
Secret String - private
Key String - PEM format private key for signing requests.
- access
Mode String - allowed
Principal List<String>Ids - annotations Map<String,String>
- Annotations of the resource
- enabled Boolean
- hostname String
- installation
Id String - If the Installation ID is not provided, all installations for the App will be queried.
- labels Map<String,String>
- Labels of the resource
- tls Boolean
- app
Id string - The GitHub App ID is provided on the GitHub apps page.
- client
Id string - client
Secret string - private
Key string - PEM format private key for signing requests.
- access
Mode string - allowed
Principal string[]Ids - annotations {[key: string]: string}
- Annotations of the resource
- enabled boolean
- hostname string
- installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- labels {[key: string]: string}
- Labels of the resource
- tls boolean
- app_
id str - The GitHub App ID is provided on the GitHub apps page.
- client_
id str - client_
secret str - private_
key str - PEM format private key for signing requests.
- access_
mode str - allowed_
principal_ Sequence[str]ids - annotations Mapping[str, str]
- Annotations of the resource
- enabled bool
- hostname str
- installation_
id str - If the Installation ID is not provided, all installations for the App will be queried.
- labels Mapping[str, str]
- Labels of the resource
- tls bool
- app
Id String - The GitHub App ID is provided on the GitHub apps page.
- client
Id String - client
Secret String - private
Key String - PEM format private key for signing requests.
- access
Mode String - allowed
Principal List<String>Ids - annotations Map<String>
- Annotations of the resource
- enabled Boolean
- hostname String
- installation
Id String - If the Installation ID is not provided, all installations for the App will be queried.
- labels Map<String>
- Labels of the resource
- tls Boolean
Outputs
All input properties are implicitly available as output properties. Additionally, the AuthConfigGithubapp resource produces the following output properties:
Look up Existing AuthConfigGithubapp Resource
Get an existing AuthConfigGithubapp 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?: AuthConfigGithubappState, opts?: CustomResourceOptions): AuthConfigGithubapp@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
access_mode: Optional[str] = None,
allowed_principal_ids: Optional[Sequence[str]] = None,
annotations: Optional[Mapping[str, str]] = None,
app_id: Optional[str] = None,
client_id: Optional[str] = None,
client_secret: Optional[str] = None,
enabled: Optional[bool] = None,
hostname: Optional[str] = None,
installation_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
private_key: Optional[str] = None,
tls: Optional[bool] = None,
type: Optional[str] = None) -> AuthConfigGithubappfunc GetAuthConfigGithubapp(ctx *Context, name string, id IDInput, state *AuthConfigGithubappState, opts ...ResourceOption) (*AuthConfigGithubapp, error)public static AuthConfigGithubapp Get(string name, Input<string> id, AuthConfigGithubappState? state, CustomResourceOptions? opts = null)public static AuthConfigGithubapp get(String name, Output<String> id, AuthConfigGithubappState state, CustomResourceOptions options)resources: _: type: rancher2:AuthConfigGithubapp get: id: ${id}- 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.
- Access
Mode string - Allowed
Principal List<string>Ids - Annotations Dictionary<string, string>
- Annotations of the resource
- App
Id string - The GitHub App ID is provided on the GitHub apps page.
- Client
Id string - Client
Secret string - Enabled bool
- Hostname string
- Installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- Labels Dictionary<string, string>
- Labels of the resource
- Name string
- Private
Key string - PEM format private key for signing requests.
- Tls bool
- Type string
- Access
Mode string - Allowed
Principal []stringIds - Annotations map[string]string
- Annotations of the resource
- App
Id string - The GitHub App ID is provided on the GitHub apps page.
- Client
Id string - Client
Secret string - Enabled bool
- Hostname string
- Installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- Labels map[string]string
- Labels of the resource
- Name string
- Private
Key string - PEM format private key for signing requests.
- Tls bool
- Type string
- access
Mode String - allowed
Principal List<String>Ids - annotations Map<String,String>
- Annotations of the resource
- app
Id String - The GitHub App ID is provided on the GitHub apps page.
- client
Id String - client
Secret String - enabled Boolean
- hostname String
- installation
Id String - If the Installation ID is not provided, all installations for the App will be queried.
- labels Map<String,String>
- Labels of the resource
- name String
- private
Key String - PEM format private key for signing requests.
- tls Boolean
- type String
- access
Mode string - allowed
Principal string[]Ids - annotations {[key: string]: string}
- Annotations of the resource
- app
Id string - The GitHub App ID is provided on the GitHub apps page.
- client
Id string - client
Secret string - enabled boolean
- hostname string
- installation
Id string - If the Installation ID is not provided, all installations for the App will be queried.
- labels {[key: string]: string}
- Labels of the resource
- name string
- private
Key string - PEM format private key for signing requests.
- tls boolean
- type string
- access_
mode str - allowed_
principal_ Sequence[str]ids - annotations Mapping[str, str]
- Annotations of the resource
- app_
id str - The GitHub App ID is provided on the GitHub apps page.
- client_
id str - client_
secret str - enabled bool
- hostname str
- installation_
id str - If the Installation ID is not provided, all installations for the App will be queried.
- labels Mapping[str, str]
- Labels of the resource
- name str
- private_
key str - PEM format private key for signing requests.
- tls bool
- type str
- access
Mode String - allowed
Principal List<String>Ids - annotations Map<String>
- Annotations of the resource
- app
Id String - The GitHub App ID is provided on the GitHub apps page.
- client
Id String - client
Secret String - enabled Boolean
- hostname String
- installation
Id String - If the Installation ID is not provided, all installations for the App will be queried.
- labels Map<String>
- Labels of the resource
- name String
- private
Key String - PEM format private key for signing requests.
- tls Boolean
- type String
Package Details
- Repository
- Rancher2 pulumi/pulumi-rancher2
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
rancher2Terraform Provider.
