scm.ServiceConnectionGroup
Explore with Pulumi AI
Retrieves a config item.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as scm from "@pulumi/scm";
const example = new scm.ServiceConnectionGroup("example", {});
import pulumi
import pulumi_scm as scm
example = scm.ServiceConnectionGroup("example")
package main
import (
"github.com/pulumi/pulumi-scm/sdk/go/scm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := scm.NewServiceConnectionGroup(ctx, "example", nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scm = Pulumi.Scm;
return await Deployment.RunAsync(() =>
{
var example = new Scm.ServiceConnectionGroup("example");
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scm.ServiceConnectionGroup;
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 example = new ServiceConnectionGroup("example");
}
}
resources:
example:
type: scm:ServiceConnectionGroup
Create ServiceConnectionGroup Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ServiceConnectionGroup(name: string, args: ServiceConnectionGroupArgs, opts?: CustomResourceOptions);
@overload
def ServiceConnectionGroup(resource_name: str,
args: ServiceConnectionGroupArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ServiceConnectionGroup(resource_name: str,
opts: Optional[ResourceOptions] = None,
targets: Optional[Sequence[str]] = None,
disable_snat: Optional[bool] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
pbf_only: Optional[bool] = None)
func NewServiceConnectionGroup(ctx *Context, name string, args ServiceConnectionGroupArgs, opts ...ResourceOption) (*ServiceConnectionGroup, error)
public ServiceConnectionGroup(string name, ServiceConnectionGroupArgs args, CustomResourceOptions? opts = null)
public ServiceConnectionGroup(String name, ServiceConnectionGroupArgs args)
public ServiceConnectionGroup(String name, ServiceConnectionGroupArgs args, CustomResourceOptions options)
type: scm:ServiceConnectionGroup
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 ServiceConnectionGroupArgs
- 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 ServiceConnectionGroupArgs
- 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 ServiceConnectionGroupArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServiceConnectionGroupArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServiceConnectionGroupArgs
- 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 serviceConnectionGroupResource = new Scm.ServiceConnectionGroup("serviceConnectionGroupResource", new()
{
Targets = new[]
{
"string",
},
DisableSnat = false,
Folder = "string",
Name = "string",
PbfOnly = false,
});
example, err := scm.NewServiceConnectionGroup(ctx, "serviceConnectionGroupResource", &scm.ServiceConnectionGroupArgs{
Targets: pulumi.StringArray{
pulumi.String("string"),
},
DisableSnat: pulumi.Bool(false),
Folder: pulumi.String("string"),
Name: pulumi.String("string"),
PbfOnly: pulumi.Bool(false),
})
var serviceConnectionGroupResource = new ServiceConnectionGroup("serviceConnectionGroupResource", ServiceConnectionGroupArgs.builder()
.targets("string")
.disableSnat(false)
.folder("string")
.name("string")
.pbfOnly(false)
.build());
service_connection_group_resource = scm.ServiceConnectionGroup("serviceConnectionGroupResource",
targets=["string"],
disable_snat=False,
folder="string",
name="string",
pbf_only=False)
const serviceConnectionGroupResource = new scm.ServiceConnectionGroup("serviceConnectionGroupResource", {
targets: ["string"],
disableSnat: false,
folder: "string",
name: "string",
pbfOnly: false,
});
type: scm:ServiceConnectionGroup
properties:
disableSnat: false
folder: string
name: string
pbfOnly: false
targets:
- string
ServiceConnectionGroup 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 ServiceConnectionGroup resource accepts the following input properties:
- Targets List<string>
- The Targets param.
- Disable
Snat bool - The DisableSnat param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Name string
- The Name param.
- Pbf
Only bool - The PbfOnly param.
- Targets []string
- The Targets param.
- Disable
Snat bool - The DisableSnat param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Name string
- The Name param.
- Pbf
Only bool - The PbfOnly param.
- targets List<String>
- The Targets param.
- disable
Snat Boolean - The DisableSnat param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name String
- The Name param.
- pbf
Only Boolean - The PbfOnly param.
- targets string[]
- The Targets param.
- disable
Snat boolean - The DisableSnat param.
- folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name string
- The Name param.
- pbf
Only boolean - The PbfOnly param.
- targets Sequence[str]
- The Targets param.
- disable_
snat bool - The DisableSnat param.
- folder str
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name str
- The Name param.
- pbf_
only bool - The PbfOnly param.
- targets List<String>
- The Targets param.
- disable
Snat Boolean - The DisableSnat param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name String
- The Name param.
- pbf
Only Boolean - The PbfOnly param.
Outputs
All input properties are implicitly available as output properties. Additionally, the ServiceConnectionGroup resource produces the following output properties:
Look up Existing ServiceConnectionGroup Resource
Get an existing ServiceConnectionGroup 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?: ServiceConnectionGroupState, opts?: CustomResourceOptions): ServiceConnectionGroup
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
disable_snat: Optional[bool] = None,
folder: Optional[str] = None,
name: Optional[str] = None,
pbf_only: Optional[bool] = None,
targets: Optional[Sequence[str]] = None,
tfid: Optional[str] = None) -> ServiceConnectionGroup
func GetServiceConnectionGroup(ctx *Context, name string, id IDInput, state *ServiceConnectionGroupState, opts ...ResourceOption) (*ServiceConnectionGroup, error)
public static ServiceConnectionGroup Get(string name, Input<string> id, ServiceConnectionGroupState? state, CustomResourceOptions? opts = null)
public static ServiceConnectionGroup get(String name, Output<String> id, ServiceConnectionGroupState 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.
- Disable
Snat bool - The DisableSnat param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Name string
- The Name param.
- Pbf
Only bool - The PbfOnly param.
- Targets List<string>
- The Targets param.
- Tfid string
- Disable
Snat bool - The DisableSnat param.
- Folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - Name string
- The Name param.
- Pbf
Only bool - The PbfOnly param.
- Targets []string
- The Targets param.
- Tfid string
- disable
Snat Boolean - The DisableSnat param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name String
- The Name param.
- pbf
Only Boolean - The PbfOnly param.
- targets List<String>
- The Targets param.
- tfid String
- disable
Snat boolean - The DisableSnat param.
- folder string
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name string
- The Name param.
- pbf
Only boolean - The PbfOnly param.
- targets string[]
- The Targets param.
- tfid string
- disable_
snat bool - The DisableSnat param.
- folder str
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name str
- The Name param.
- pbf_
only bool - The PbfOnly param.
- targets Sequence[str]
- The Targets param.
- tfid str
- disable
Snat Boolean - The DisableSnat param.
- folder String
- The Folder param. String can either be a specific string(
"Service Connections"
) or match this regex:^[0-9a-zA-Z._\s-]{1,}$
. Default:"Service Connections"
. - name String
- The Name param.
- pbf
Only Boolean - The PbfOnly param.
- targets List<String>
- The Targets param.
- tfid String
Package Details
- Repository
- scm pulumi/pulumi-scm
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scm
Terraform Provider.