GitHub v6.3.0 published on Monday, Sep 16, 2024 by Pulumi
github.ActionsEnvironmentSecret
Explore with Pulumi AI
Example Usage
Create ActionsEnvironmentSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ActionsEnvironmentSecret(name: string, args: ActionsEnvironmentSecretArgs, opts?: CustomResourceOptions);
@overload
def ActionsEnvironmentSecret(resource_name: str,
args: ActionsEnvironmentSecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ActionsEnvironmentSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment: Optional[str] = None,
repository: Optional[str] = None,
secret_name: Optional[str] = None,
encrypted_value: Optional[str] = None,
plaintext_value: Optional[str] = None)
func NewActionsEnvironmentSecret(ctx *Context, name string, args ActionsEnvironmentSecretArgs, opts ...ResourceOption) (*ActionsEnvironmentSecret, error)
public ActionsEnvironmentSecret(string name, ActionsEnvironmentSecretArgs args, CustomResourceOptions? opts = null)
public ActionsEnvironmentSecret(String name, ActionsEnvironmentSecretArgs args)
public ActionsEnvironmentSecret(String name, ActionsEnvironmentSecretArgs args, CustomResourceOptions options)
type: github:ActionsEnvironmentSecret
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 ActionsEnvironmentSecretArgs
- 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 ActionsEnvironmentSecretArgs
- 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 ActionsEnvironmentSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ActionsEnvironmentSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ActionsEnvironmentSecretArgs
- 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 actionsEnvironmentSecretResource = new Github.ActionsEnvironmentSecret("actionsEnvironmentSecretResource", new()
{
Environment = "string",
Repository = "string",
SecretName = "string",
EncryptedValue = "string",
PlaintextValue = "string",
});
example, err := github.NewActionsEnvironmentSecret(ctx, "actionsEnvironmentSecretResource", &github.ActionsEnvironmentSecretArgs{
Environment: pulumi.String("string"),
Repository: pulumi.String("string"),
SecretName: pulumi.String("string"),
EncryptedValue: pulumi.String("string"),
PlaintextValue: pulumi.String("string"),
})
var actionsEnvironmentSecretResource = new ActionsEnvironmentSecret("actionsEnvironmentSecretResource", ActionsEnvironmentSecretArgs.builder()
.environment("string")
.repository("string")
.secretName("string")
.encryptedValue("string")
.plaintextValue("string")
.build());
actions_environment_secret_resource = github.ActionsEnvironmentSecret("actionsEnvironmentSecretResource",
environment="string",
repository="string",
secret_name="string",
encrypted_value="string",
plaintext_value="string")
const actionsEnvironmentSecretResource = new github.ActionsEnvironmentSecret("actionsEnvironmentSecretResource", {
environment: "string",
repository: "string",
secretName: "string",
encryptedValue: "string",
plaintextValue: "string",
});
type: github:ActionsEnvironmentSecret
properties:
encryptedValue: string
environment: string
plaintextValue: string
repository: string
secretName: string
ActionsEnvironmentSecret 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 ActionsEnvironmentSecret resource accepts the following input properties:
- Environment string
- Name of the environment.
- Repository string
- Name of the repository.
- Secret
Name string - Name of the secret.
- Encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- Plaintext
Value string - Plaintext value of the secret to be encrypted.
- Environment string
- Name of the environment.
- Repository string
- Name of the repository.
- Secret
Name string - Name of the secret.
- Encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- Plaintext
Value string - Plaintext value of the secret to be encrypted.
- environment String
- Name of the environment.
- repository String
- Name of the repository.
- secret
Name String - Name of the secret.
- encrypted
Value String - Encrypted value of the secret using the GitHub public key in Base64 format.
- plaintext
Value String - Plaintext value of the secret to be encrypted.
- environment string
- Name of the environment.
- repository string
- Name of the repository.
- secret
Name string - Name of the secret.
- encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- plaintext
Value string - Plaintext value of the secret to be encrypted.
- environment str
- Name of the environment.
- repository str
- Name of the repository.
- secret_
name str - Name of the secret.
- encrypted_
value str - Encrypted value of the secret using the GitHub public key in Base64 format.
- plaintext_
value str - Plaintext value of the secret to be encrypted.
- environment String
- Name of the environment.
- repository String
- Name of the repository.
- secret
Name String - Name of the secret.
- encrypted
Value String - Encrypted value of the secret using the GitHub public key in Base64 format.
- plaintext
Value String - Plaintext value of the secret to be encrypted.
Outputs
All input properties are implicitly available as output properties. Additionally, the ActionsEnvironmentSecret resource produces the following output properties:
- created_
at str - Date of actions_environment_secret creation.
- id str
- The provider-assigned unique ID for this managed resource.
- updated_
at str - Date of actions_environment_secret update.
Look up Existing ActionsEnvironmentSecret Resource
Get an existing ActionsEnvironmentSecret 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?: ActionsEnvironmentSecretState, opts?: CustomResourceOptions): ActionsEnvironmentSecret
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
created_at: Optional[str] = None,
encrypted_value: Optional[str] = None,
environment: Optional[str] = None,
plaintext_value: Optional[str] = None,
repository: Optional[str] = None,
secret_name: Optional[str] = None,
updated_at: Optional[str] = None) -> ActionsEnvironmentSecret
func GetActionsEnvironmentSecret(ctx *Context, name string, id IDInput, state *ActionsEnvironmentSecretState, opts ...ResourceOption) (*ActionsEnvironmentSecret, error)
public static ActionsEnvironmentSecret Get(string name, Input<string> id, ActionsEnvironmentSecretState? state, CustomResourceOptions? opts = null)
public static ActionsEnvironmentSecret get(String name, Output<String> id, ActionsEnvironmentSecretState 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.
- Created
At string - Date of actions_environment_secret creation.
- Encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- Environment string
- Name of the environment.
- Plaintext
Value string - Plaintext value of the secret to be encrypted.
- Repository string
- Name of the repository.
- Secret
Name string - Name of the secret.
- Updated
At string - Date of actions_environment_secret update.
- Created
At string - Date of actions_environment_secret creation.
- Encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- Environment string
- Name of the environment.
- Plaintext
Value string - Plaintext value of the secret to be encrypted.
- Repository string
- Name of the repository.
- Secret
Name string - Name of the secret.
- Updated
At string - Date of actions_environment_secret update.
- created
At String - Date of actions_environment_secret creation.
- encrypted
Value String - Encrypted value of the secret using the GitHub public key in Base64 format.
- environment String
- Name of the environment.
- plaintext
Value String - Plaintext value of the secret to be encrypted.
- repository String
- Name of the repository.
- secret
Name String - Name of the secret.
- updated
At String - Date of actions_environment_secret update.
- created
At string - Date of actions_environment_secret creation.
- encrypted
Value string - Encrypted value of the secret using the GitHub public key in Base64 format.
- environment string
- Name of the environment.
- plaintext
Value string - Plaintext value of the secret to be encrypted.
- repository string
- Name of the repository.
- secret
Name string - Name of the secret.
- updated
At string - Date of actions_environment_secret update.
- created_
at str - Date of actions_environment_secret creation.
- encrypted_
value str - Encrypted value of the secret using the GitHub public key in Base64 format.
- environment str
- Name of the environment.
- plaintext_
value str - Plaintext value of the secret to be encrypted.
- repository str
- Name of the repository.
- secret_
name str - Name of the secret.
- updated_
at str - Date of actions_environment_secret update.
- created
At String - Date of actions_environment_secret creation.
- encrypted
Value String - Encrypted value of the secret using the GitHub public key in Base64 format.
- environment String
- Name of the environment.
- plaintext
Value String - Plaintext value of the secret to be encrypted.
- repository String
- Name of the repository.
- secret
Name String - Name of the secret.
- updated
At String - Date of actions_environment_secret update.
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
github
Terraform Provider.