1. Packages
  2. Google Cloud (GCP) Classic
  3. API Docs
  4. securitycenter
  5. V2OrganizationSource
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

gcp.securitycenter.V2OrganizationSource

Explore with Pulumi AI

gcp logo
Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi

    A Cloud Security Command Center’s (Cloud SCC) finding source. A finding source is an entity or a mechanism that can produce a finding. A source is like a container of findings that come from the same scanner, logger, monitor, etc.

    To get more information about OrganizationSource, see:

    Example Usage

    Scc Source Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as gcp from "@pulumi/gcp";
    
    const customSource = new gcp.securitycenter.Source("custom_source", {
        displayName: "My Source",
        organization: "123456789",
        description: "My custom Cloud Security Command Center Finding Source",
    });
    
    import pulumi
    import pulumi_gcp as gcp
    
    custom_source = gcp.securitycenter.Source("custom_source",
        display_name="My Source",
        organization="123456789",
        description="My custom Cloud Security Command Center Finding Source")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/securitycenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := securitycenter.NewSource(ctx, "custom_source", &securitycenter.SourceArgs{
    			DisplayName:  pulumi.String("My Source"),
    			Organization: pulumi.String("123456789"),
    			Description:  pulumi.String("My custom Cloud Security Command Center Finding Source"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Gcp = Pulumi.Gcp;
    
    return await Deployment.RunAsync(() => 
    {
        var customSource = new Gcp.SecurityCenter.Source("custom_source", new()
        {
            DisplayName = "My Source",
            Organization = "123456789",
            Description = "My custom Cloud Security Command Center Finding Source",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.gcp.securitycenter.Source;
    import com.pulumi.gcp.securitycenter.SourceArgs;
    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 customSource = new Source("customSource", SourceArgs.builder()
                .displayName("My Source")
                .organization("123456789")
                .description("My custom Cloud Security Command Center Finding Source")
                .build());
    
        }
    }
    
    resources:
      customSource:
        type: gcp:securitycenter:Source
        name: custom_source
        properties:
          displayName: My Source
          organization: '123456789'
          description: My custom Cloud Security Command Center Finding Source
    

    Create V2OrganizationSource Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new V2OrganizationSource(name: string, args: V2OrganizationSourceArgs, opts?: CustomResourceOptions);
    @overload
    def V2OrganizationSource(resource_name: str,
                             args: V2OrganizationSourceArgs,
                             opts: Optional[ResourceOptions] = None)
    
    @overload
    def V2OrganizationSource(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             display_name: Optional[str] = None,
                             organization: Optional[str] = None,
                             description: Optional[str] = None)
    func NewV2OrganizationSource(ctx *Context, name string, args V2OrganizationSourceArgs, opts ...ResourceOption) (*V2OrganizationSource, error)
    public V2OrganizationSource(string name, V2OrganizationSourceArgs args, CustomResourceOptions? opts = null)
    public V2OrganizationSource(String name, V2OrganizationSourceArgs args)
    public V2OrganizationSource(String name, V2OrganizationSourceArgs args, CustomResourceOptions options)
    
    type: gcp:securitycenter:V2OrganizationSource
    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 V2OrganizationSourceArgs
    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 V2OrganizationSourceArgs
    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 V2OrganizationSourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args V2OrganizationSourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args V2OrganizationSourceArgs
    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 v2organizationSourceResource = new Gcp.SecurityCenter.V2OrganizationSource("v2organizationSourceResource", new()
    {
        DisplayName = "string",
        Organization = "string",
        Description = "string",
    });
    
    example, err := securitycenter.NewV2OrganizationSource(ctx, "v2organizationSourceResource", &securitycenter.V2OrganizationSourceArgs{
    	DisplayName:  pulumi.String("string"),
    	Organization: pulumi.String("string"),
    	Description:  pulumi.String("string"),
    })
    
    var v2organizationSourceResource = new V2OrganizationSource("v2organizationSourceResource", V2OrganizationSourceArgs.builder()
        .displayName("string")
        .organization("string")
        .description("string")
        .build());
    
    v2organization_source_resource = gcp.securitycenter.V2OrganizationSource("v2organizationSourceResource",
        display_name="string",
        organization="string",
        description="string")
    
    const v2organizationSourceResource = new gcp.securitycenter.V2OrganizationSource("v2organizationSourceResource", {
        displayName: "string",
        organization: "string",
        description: "string",
    });
    
    type: gcp:securitycenter:V2OrganizationSource
    properties:
        description: string
        displayName: string
        organization: string
    

    V2OrganizationSource 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 V2OrganizationSource resource accepts the following input properties:

    DisplayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    Organization string
    The organization whose Cloud Security Command Center the Source lives in.


    Description string
    The description of the source (max of 1024 characters).
    DisplayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    Organization string
    The organization whose Cloud Security Command Center the Source lives in.


    Description string
    The description of the source (max of 1024 characters).
    displayName String
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    organization String
    The organization whose Cloud Security Command Center the Source lives in.


    description String
    The description of the source (max of 1024 characters).
    displayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    organization string
    The organization whose Cloud Security Command Center the Source lives in.


    description string
    The description of the source (max of 1024 characters).
    display_name str
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    organization str
    The organization whose Cloud Security Command Center the Source lives in.


    description str
    The description of the source (max of 1024 characters).
    displayName String
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    organization String
    The organization whose Cloud Security Command Center the Source lives in.


    description String
    The description of the source (max of 1024 characters).

    Outputs

    All input properties are implicitly available as output properties. Additionally, the V2OrganizationSource resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.

    Look up Existing V2OrganizationSource Resource

    Get an existing V2OrganizationSource 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?: V2OrganizationSourceState, opts?: CustomResourceOptions): V2OrganizationSource
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            display_name: Optional[str] = None,
            name: Optional[str] = None,
            organization: Optional[str] = None) -> V2OrganizationSource
    func GetV2OrganizationSource(ctx *Context, name string, id IDInput, state *V2OrganizationSourceState, opts ...ResourceOption) (*V2OrganizationSource, error)
    public static V2OrganizationSource Get(string name, Input<string> id, V2OrganizationSourceState? state, CustomResourceOptions? opts = null)
    public static V2OrganizationSource get(String name, Output<String> id, V2OrganizationSourceState 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.
    The following state arguments are supported:
    Description string
    The description of the source (max of 1024 characters).
    DisplayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    Name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    Organization string
    The organization whose Cloud Security Command Center the Source lives in.


    Description string
    The description of the source (max of 1024 characters).
    DisplayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    Name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    Organization string
    The organization whose Cloud Security Command Center the Source lives in.


    description String
    The description of the source (max of 1024 characters).
    displayName String
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    name String
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    organization String
    The organization whose Cloud Security Command Center the Source lives in.


    description string
    The description of the source (max of 1024 characters).
    displayName string
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    name string
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    organization string
    The organization whose Cloud Security Command Center the Source lives in.


    description str
    The description of the source (max of 1024 characters).
    display_name str
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    name str
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    organization str
    The organization whose Cloud Security Command Center the Source lives in.


    description String
    The description of the source (max of 1024 characters).
    displayName String
    The source’s display name. A source’s display name must be unique amongst its siblings, for example, two sources with the same parent can't share the same display name. The display name must start and end with a letter or digit, may contain letters, digits, spaces, hyphens, and underscores, and can be no longer than 32 characters.
    name String
    The resource name of this source, in the format organizations/{{organization}}/sources/{{source}}.
    organization String
    The organization whose Cloud Security Command Center the Source lives in.


    Import

    OrganizationSource can be imported using any of these accepted formats:

    • organizations/{{organization}}/sources/{{name}}

    • {{organization}}/{{name}}

    When using the pulumi import command, OrganizationSource can be imported using one of the formats above. For example:

    $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default organizations/{{organization}}/sources/{{name}}
    
    $ pulumi import gcp:securitycenter/v2OrganizationSource:V2OrganizationSource default {{organization}}/{{name}}
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Google Cloud (GCP) Classic pulumi/pulumi-gcp
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the google-beta Terraform Provider.
    gcp logo
    Google Cloud Classic v8.9.3 published on Monday, Nov 18, 2024 by Pulumi