1. Registry
  2. Packages
  3. Google Cloud Native
  4. API Docs
  5. securitycenter
  6. securitycenter/v1beta1
  7. Source

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi
google-native logo Google Cloud Native

This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

Viewing docs for Google Cloud Native v0.32.0
published on Wednesday, Nov 29, 2023 by Pulumi

    Creates a source. Note - this resource’s API doesn’t support deletion. When deleted, the resource will persist on Google Cloud even though it will be deleted from Pulumi state.

    Create Source Resource

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

    Constructor syntax

    new Source(name: string, args: SourceArgs, opts?: CustomResourceOptions);
    @overload
    def Source(resource_name: str,
               args: SourceArgs,
               opts: Optional[ResourceOptions] = None)
    
    @overload
    def Source(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               organization_id: Optional[str] = None,
               description: Optional[str] = None,
               display_name: Optional[str] = None,
               name: Optional[str] = None)
    func NewSource(ctx *Context, name string, args SourceArgs, opts ...ResourceOption) (*Source, error)
    public Source(string name, SourceArgs args, CustomResourceOptions? opts = null)
    public Source(String name, SourceArgs args)
    public Source(String name, SourceArgs args, CustomResourceOptions options)
    
    type: google-native:securitycenter/v1beta1:Source
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "google-native_securitycenter_v1beta1_source" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args SourceArgs
    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 SourceArgs
    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 SourceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SourceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SourceArgs
    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 examplesourceResourceResourceFromSecuritycenterv1beta1 = new GoogleNative.Securitycenter.V1Beta1.Source("examplesourceResourceResourceFromSecuritycenterv1beta1", new()
    {
        OrganizationId = "string",
        Description = "string",
        DisplayName = "string",
        Name = "string",
    });
    
    example, err := securitycenterv1beta1.NewSource(ctx, "examplesourceResourceResourceFromSecuritycenterv1beta1", &securitycenterv1beta1.SourceArgs{
    	OrganizationId: pulumi.String("string"),
    	Description:    pulumi.String("string"),
    	DisplayName:    pulumi.String("string"),
    	Name:           pulumi.String("string"),
    })
    
    resource "google-native_securitycenter_v1beta1_source" "examplesourceResourceResourceFromSecuritycenterv1beta1" {
      lifecycle {
        create_before_destroy = true
      }
      organization_id = "string"
      description     = "string"
      display_name    = "string"
      name            = "string"
    }
    
    var examplesourceResourceResourceFromSecuritycenterv1beta1 = new com.pulumi.googlenative.securitycenter_v1beta1.Source("examplesourceResourceResourceFromSecuritycenterv1beta1", com.pulumi.googlenative.securitycenter_v1beta1.SourceArgs.builder()
        .organizationId("string")
        .description("string")
        .displayName("string")
        .name("string")
        .build());
    
    examplesource_resource_resource_from_securitycenterv1beta1 = google_native.securitycenter.v1beta1.Source("examplesourceResourceResourceFromSecuritycenterv1beta1",
        organization_id="string",
        description="string",
        display_name="string",
        name="string")
    
    const examplesourceResourceResourceFromSecuritycenterv1beta1 = new google_native.securitycenter.v1beta1.Source("examplesourceResourceResourceFromSecuritycenterv1beta1", {
        organizationId: "string",
        description: "string",
        displayName: "string",
        name: "string",
    });
    
    type: google-native:securitycenter/v1beta1:Source
    properties:
        description: string
        displayName: string
        name: string
        organizationId: string
    

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

    OrganizationId string
    Description string
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    Name string
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    OrganizationId string
    Description string
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    Name string
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    organization_id string
    description string
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    display_name 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 have a length between 1 and 64 characters (inclusive).
    name string
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    organizationId String
    description String
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    name String
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    organizationId string
    description string
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    name string
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    organization_id str
    description str
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    name str
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"
    organizationId String
    description String
    The description of the source (max of 1024 characters). Example: "Web Security Scanner is a web security scanner for common vulnerabilities in App Engine applications. It can automatically scan and detect four common vulnerabilities, including cross-site-scripting (XSS), Flash injection, mixed content (HTTP in HTTPS), and outdated/insecure libraries."
    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 have a length between 1 and 64 characters (inclusive).
    name String
    The relative resource name of this source. See: https://cloud.google.com/apis/design/resource_names#relative_resource_name Example: "organizations/{organization_id}/sources/{source_id}"

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Source 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 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 Source Resource

    Get an existing Source 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>, opts?: CustomResourceOptions): Source
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None) -> Source
    func GetSource(ctx *Context, name string, id IDInput, state *SourceState, opts ...ResourceOption) (*Source, error)
    public static Source Get(string name, Input<string> id, CustomResourceOptions? opts = null)
    public static Source get(String name, Output<String> id, CustomResourceOptions options)
    resources:  existingSource:    type: google-native:securitycenter/v1beta1:Source    get:      id: ${id}
    import {
      to = google-native_securitycenter_v1beta1_source.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state SourceState
    Pass nil. This resource has no state arguments.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Package Details

    Repository
    Google Cloud Native pulumi/pulumi-google-native
    License
    Apache-2.0
    google-native logo Google Cloud Native

    This package is deprecated. Active development has stopped. We recommend using the Google Cloud package instead.

    Viewing docs for Google Cloud Native v0.32.0
    published on Wednesday, Nov 29, 2023 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial