awx.CredentialGitlab
Explore with Pulumi AI
Create CredentialGitlab Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CredentialGitlab(name: string, args: CredentialGitlabArgs, opts?: CustomResourceOptions);
@overload
def CredentialGitlab(resource_name: str,
args: CredentialGitlabArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CredentialGitlab(resource_name: str,
opts: Optional[ResourceOptions] = None,
token: Optional[str] = None,
credential_gitlab_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[float] = None)
func NewCredentialGitlab(ctx *Context, name string, args CredentialGitlabArgs, opts ...ResourceOption) (*CredentialGitlab, error)
public CredentialGitlab(string name, CredentialGitlabArgs args, CustomResourceOptions? opts = null)
public CredentialGitlab(String name, CredentialGitlabArgs args)
public CredentialGitlab(String name, CredentialGitlabArgs args, CustomResourceOptions options)
type: awx:CredentialGitlab
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 CredentialGitlabArgs
- 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 CredentialGitlabArgs
- 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 CredentialGitlabArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CredentialGitlabArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CredentialGitlabArgs
- 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 credentialGitlabResource = new Awx.CredentialGitlab("credentialGitlabResource", new()
{
Token = "string",
CredentialGitlabId = "string",
Description = "string",
Name = "string",
OrganizationId = 0,
});
example, err := awx.NewCredentialGitlab(ctx, "credentialGitlabResource", &awx.CredentialGitlabArgs{
Token: pulumi.String("string"),
CredentialGitlabId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationId: pulumi.Float64(0),
})
var credentialGitlabResource = new CredentialGitlab("credentialGitlabResource", CredentialGitlabArgs.builder()
.token("string")
.credentialGitlabId("string")
.description("string")
.name("string")
.organizationId(0)
.build());
credential_gitlab_resource = awx.CredentialGitlab("credentialGitlabResource",
token="string",
credential_gitlab_id="string",
description="string",
name="string",
organization_id=0)
const credentialGitlabResource = new awx.CredentialGitlab("credentialGitlabResource", {
token: "string",
credentialGitlabId: "string",
description: "string",
name: "string",
organizationId: 0,
});
type: awx:CredentialGitlab
properties:
credentialGitlabId: string
description: string
name: string
organizationId: 0
token: string
CredentialGitlab 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 CredentialGitlab resource accepts the following input properties:
- Token string
- Credential
Gitlab stringId - Description string
- Name string
- Organization
Id double
- Token string
- Credential
Gitlab stringId - Description string
- Name string
- Organization
Id float64
- token String
- credential
Gitlab StringId - description String
- name String
- organization
Id Double
- token string
- credential
Gitlab stringId - description string
- name string
- organization
Id number
- token str
- credential_
gitlab_ strid - description str
- name str
- organization_
id float
- token String
- credential
Gitlab StringId - description String
- name String
- organization
Id Number
Outputs
All input properties are implicitly available as output properties. Additionally, the CredentialGitlab resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing CredentialGitlab Resource
Get an existing CredentialGitlab 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?: CredentialGitlabState, opts?: CustomResourceOptions): CredentialGitlab
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
credential_gitlab_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[float] = None,
token: Optional[str] = None) -> CredentialGitlab
func GetCredentialGitlab(ctx *Context, name string, id IDInput, state *CredentialGitlabState, opts ...ResourceOption) (*CredentialGitlab, error)
public static CredentialGitlab Get(string name, Input<string> id, CredentialGitlabState? state, CustomResourceOptions? opts = null)
public static CredentialGitlab get(String name, Output<String> id, CredentialGitlabState state, CustomResourceOptions options)
resources: _: type: awx:CredentialGitlab 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.
- Credential
Gitlab stringId - Description string
- Name string
- Organization
Id double - Token string
- Credential
Gitlab stringId - Description string
- Name string
- Organization
Id float64 - Token string
- credential
Gitlab StringId - description String
- name String
- organization
Id Double - token String
- credential
Gitlab stringId - description string
- name string
- organization
Id number - token string
- credential_
gitlab_ strid - description str
- name str
- organization_
id float - token str
- credential
Gitlab StringId - description String
- name String
- organization
Id Number - token String
Package Details
- Repository
- awx denouche/terraform-provider-awx
- License
- Notes
- This Pulumi package is based on the
awx
Terraform Provider.