sonarqube.Qualityprofile
Explore with Pulumi AI
Provides a Sonarqube Quality Profile resource. This can be used to create and manage Sonarqube Quality Profiles.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const main = new sonarqube.Qualityprofile("main", {
isDefault: false,
language: "js",
parent: "sonar way",
});
import pulumi
import pulumi_sonarqube as sonarqube
main = sonarqube.Qualityprofile("main",
is_default=False,
language="js",
parent="sonar way")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sonarqube.NewQualityprofile(ctx, "main", &sonarqube.QualityprofileArgs{
IsDefault: pulumi.Bool(false),
Language: pulumi.String("js"),
Parent: pulumi.String("sonar way"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sonarqube = Pulumi.Sonarqube;
return await Deployment.RunAsync(() =>
{
var main = new Sonarqube.Qualityprofile("main", new()
{
IsDefault = false,
Language = "js",
Parent = "sonar way",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.Qualityprofile;
import com.pulumi.sonarqube.QualityprofileArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var main = new Qualityprofile("main", QualityprofileArgs.builder()
.isDefault(false)
.language("js")
.parent("sonar way")
.build());
}
}
resources:
main:
type: sonarqube:Qualityprofile
properties:
isDefault: false
language: js
parent: sonar way
Create Qualityprofile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Qualityprofile(name: string, args: QualityprofileArgs, opts?: CustomResourceOptions);
@overload
def Qualityprofile(resource_name: str,
args: QualityprofileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Qualityprofile(resource_name: str,
opts: Optional[ResourceOptions] = None,
language: Optional[str] = None,
is_default: Optional[bool] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
qualityprofile_id: Optional[str] = None)
func NewQualityprofile(ctx *Context, name string, args QualityprofileArgs, opts ...ResourceOption) (*Qualityprofile, error)
public Qualityprofile(string name, QualityprofileArgs args, CustomResourceOptions? opts = null)
public Qualityprofile(String name, QualityprofileArgs args)
public Qualityprofile(String name, QualityprofileArgs args, CustomResourceOptions options)
type: sonarqube:Qualityprofile
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 QualityprofileArgs
- 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 QualityprofileArgs
- 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 QualityprofileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args QualityprofileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args QualityprofileArgs
- 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 qualityprofileResource = new Sonarqube.Qualityprofile("qualityprofileResource", new()
{
Language = "string",
IsDefault = false,
Name = "string",
Parent = "string",
QualityprofileId = "string",
});
example, err := sonarqube.NewQualityprofile(ctx, "qualityprofileResource", &sonarqube.QualityprofileArgs{
Language: pulumi.String("string"),
IsDefault: pulumi.Bool(false),
Name: pulumi.String("string"),
Parent: pulumi.String("string"),
QualityprofileId: pulumi.String("string"),
})
var qualityprofileResource = new Qualityprofile("qualityprofileResource", QualityprofileArgs.builder()
.language("string")
.isDefault(false)
.name("string")
.parent("string")
.qualityprofileId("string")
.build());
qualityprofile_resource = sonarqube.Qualityprofile("qualityprofileResource",
language="string",
is_default=False,
name="string",
parent="string",
qualityprofile_id="string")
const qualityprofileResource = new sonarqube.Qualityprofile("qualityprofileResource", {
language: "string",
isDefault: false,
name: "string",
parent: "string",
qualityprofileId: "string",
});
type: sonarqube:Qualityprofile
properties:
isDefault: false
language: string
name: string
parent: string
qualityprofileId: string
Qualityprofile 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 Qualityprofile resource accepts the following input properties:
- Language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- Is
Default bool - When set to true this will make the added Quality Profile default
- Name string
- The name of the Quality Profile to create. Maximum length 100
- Parent string
- When a parent is provided the quality profile will inherit it's rules
- Qualityprofile
Id string - The ID of this resource.
- Language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- Is
Default bool - When set to true this will make the added Quality Profile default
- Name string
- The name of the Quality Profile to create. Maximum length 100
- Parent string
- When a parent is provided the quality profile will inherit it's rules
- Qualityprofile
Id string - The ID of this resource.
- language String
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- is
Default Boolean - When set to true this will make the added Quality Profile default
- name String
- The name of the Quality Profile to create. Maximum length 100
- parent String
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id String - The ID of this resource.
- language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- is
Default boolean - When set to true this will make the added Quality Profile default
- name string
- The name of the Quality Profile to create. Maximum length 100
- parent string
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id string - The ID of this resource.
- language str
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- is_
default bool - When set to true this will make the added Quality Profile default
- name str
- The name of the Quality Profile to create. Maximum length 100
- parent str
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile_
id str - The ID of this resource.
- language String
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- is
Default Boolean - When set to true this will make the added Quality Profile default
- name String
- The name of the Quality Profile to create. Maximum length 100
- parent String
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id String - The ID of this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Qualityprofile resource produces the following output properties:
Look up Existing Qualityprofile Resource
Get an existing Qualityprofile 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?: QualityprofileState, opts?: CustomResourceOptions): Qualityprofile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
is_default: Optional[bool] = None,
key: Optional[str] = None,
language: Optional[str] = None,
name: Optional[str] = None,
parent: Optional[str] = None,
qualityprofile_id: Optional[str] = None) -> Qualityprofile
func GetQualityprofile(ctx *Context, name string, id IDInput, state *QualityprofileState, opts ...ResourceOption) (*Qualityprofile, error)
public static Qualityprofile Get(string name, Input<string> id, QualityprofileState? state, CustomResourceOptions? opts = null)
public static Qualityprofile get(String name, Output<String> id, QualityprofileState state, CustomResourceOptions options)
resources: _: type: sonarqube:Qualityprofile 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.
- Is
Default bool - When set to true this will make the added Quality Profile default
- Key string
- ID of the Sonarqube Quality Profile
- Language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- Name string
- The name of the Quality Profile to create. Maximum length 100
- Parent string
- When a parent is provided the quality profile will inherit it's rules
- Qualityprofile
Id string - The ID of this resource.
- Is
Default bool - When set to true this will make the added Quality Profile default
- Key string
- ID of the Sonarqube Quality Profile
- Language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- Name string
- The name of the Quality Profile to create. Maximum length 100
- Parent string
- When a parent is provided the quality profile will inherit it's rules
- Qualityprofile
Id string - The ID of this resource.
- is
Default Boolean - When set to true this will make the added Quality Profile default
- key String
- ID of the Sonarqube Quality Profile
- language String
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- name String
- The name of the Quality Profile to create. Maximum length 100
- parent String
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id String - The ID of this resource.
- is
Default boolean - When set to true this will make the added Quality Profile default
- key string
- ID of the Sonarqube Quality Profile
- language string
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- name string
- The name of the Quality Profile to create. Maximum length 100
- parent string
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id string - The ID of this resource.
- is_
default bool - When set to true this will make the added Quality Profile default
- key str
- ID of the Sonarqube Quality Profile
- language str
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- name str
- The name of the Quality Profile to create. Maximum length 100
- parent str
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile_
id str - The ID of this resource.
- is
Default Boolean - When set to true this will make the added Quality Profile default
- key String
- ID of the Sonarqube Quality Profile
- language String
- Quality profile language. Must be one of "cs", "css", "flex", "go", "java", "js", "jsp", "kotlin", "php", "py", "ruby", "scala", "ts", "vbnet", "web", "xml"
- name String
- The name of the Quality Profile to create. Maximum length 100
- parent String
- When a parent is provided the quality profile will inherit it's rules
- qualityprofile
Id String - The ID of this resource.
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqube
Terraform Provider.