1. Packages
  2. Sumologic Provider
  3. API Docs
  4. Content
sumologic 3.1.2 published on Friday, Jul 25, 2025 by sumologic

sumologic.Content

Explore with Pulumi AI

sumologic logo
sumologic 3.1.2 published on Friday, Jul 25, 2025 by sumologic

    Create Content Resource

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

    Constructor syntax

    new Content(name: string, args: ContentArgs, opts?: CustomResourceOptions);
    @overload
    def Content(resource_name: str,
                args: ContentArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Content(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                config: Optional[str] = None,
                parent_id: Optional[str] = None,
                content_id: Optional[str] = None,
                timeouts: Optional[ContentTimeoutsArgs] = None)
    func NewContent(ctx *Context, name string, args ContentArgs, opts ...ResourceOption) (*Content, error)
    public Content(string name, ContentArgs args, CustomResourceOptions? opts = null)
    public Content(String name, ContentArgs args)
    public Content(String name, ContentArgs args, CustomResourceOptions options)
    
    type: sumologic:Content
    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 ContentArgs
    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 ContentArgs
    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 ContentArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ContentArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ContentArgs
    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 contentResource = new Sumologic.Content("contentResource", new()
    {
        Config = "string",
        ParentId = "string",
        ContentId = "string",
        Timeouts = new Sumologic.Inputs.ContentTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := sumologic.NewContent(ctx, "contentResource", &sumologic.ContentArgs{
    	Config:    pulumi.String("string"),
    	ParentId:  pulumi.String("string"),
    	ContentId: pulumi.String("string"),
    	Timeouts: &sumologic.ContentTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var contentResource = new Content("contentResource", ContentArgs.builder()
        .config("string")
        .parentId("string")
        .contentId("string")
        .timeouts(ContentTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    content_resource = sumologic.Content("contentResource",
        config="string",
        parent_id="string",
        content_id="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const contentResource = new sumologic.Content("contentResource", {
        config: "string",
        parentId: "string",
        contentId: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: sumologic:Content
    properties:
        config: string
        contentId: string
        parentId: string
        timeouts:
            create: string
            delete: string
            read: string
            update: string
    

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

    Config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    ParentId string
    ContentId string
    Timeouts ContentTimeouts
    Config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    ParentId string
    ContentId string
    Timeouts ContentTimeoutsArgs
    config String
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    parentId String
    contentId String
    timeouts ContentTimeouts
    config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    parentId string
    contentId string
    timeouts ContentTimeouts
    config str
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    parent_id str
    content_id str
    timeouts ContentTimeoutsArgs
    config String
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    parentId String
    contentId String
    timeouts Property Map

    Outputs

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

    Get an existing Content 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?: ContentState, opts?: CustomResourceOptions): Content
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            config: Optional[str] = None,
            content_id: Optional[str] = None,
            parent_id: Optional[str] = None,
            timeouts: Optional[ContentTimeoutsArgs] = None) -> Content
    func GetContent(ctx *Context, name string, id IDInput, state *ContentState, opts ...ResourceOption) (*Content, error)
    public static Content Get(string name, Input<string> id, ContentState? state, CustomResourceOptions? opts = null)
    public static Content get(String name, Output<String> id, ContentState state, CustomResourceOptions options)
    resources:  _:    type: sumologic:Content    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.
    The following state arguments are supported:
    Config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    ContentId string
    ParentId string
    Timeouts ContentTimeouts
    Config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    ContentId string
    ParentId string
    Timeouts ContentTimeoutsArgs
    config String
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    contentId String
    parentId String
    timeouts ContentTimeouts
    config string
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    contentId string
    parentId string
    timeouts ContentTimeouts
    config str
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    content_id str
    parent_id str
    timeouts ContentTimeoutsArgs
    config String
    JSON block for the content to import. NOTE: Updating the name will create a new object and leave a untracked content item (delete the existing content item and create a new content item if you want to update the name).
    contentId String
    parentId String
    timeouts Property Map

    Supporting Types

    ContentTimeouts, ContentTimeoutsArgs

    Create string
    Used for waiting for the import job to be successful
    Delete string
    Used for waiting for the deletion job to be successful
    Read string
    Used for waiting for the import job to be successful
    Update string
    Used for waiting for the import job to be successful
    Create string
    Used for waiting for the import job to be successful
    Delete string
    Used for waiting for the deletion job to be successful
    Read string
    Used for waiting for the import job to be successful
    Update string
    Used for waiting for the import job to be successful
    create String
    Used for waiting for the import job to be successful
    delete String
    Used for waiting for the deletion job to be successful
    read String
    Used for waiting for the import job to be successful
    update String
    Used for waiting for the import job to be successful
    create string
    Used for waiting for the import job to be successful
    delete string
    Used for waiting for the deletion job to be successful
    read string
    Used for waiting for the import job to be successful
    update string
    Used for waiting for the import job to be successful
    create str
    Used for waiting for the import job to be successful
    delete str
    Used for waiting for the deletion job to be successful
    read str
    Used for waiting for the import job to be successful
    update str
    Used for waiting for the import job to be successful
    create String
    Used for waiting for the import job to be successful
    delete String
    Used for waiting for the deletion job to be successful
    read String
    Used for waiting for the import job to be successful
    update String
    Used for waiting for the import job to be successful

    Package Details

    Repository
    Sumo Logic sumologic/terraform-provider-sumologic
    License
    Notes
    This Pulumi package is based on the sumologic Terraform Provider.
    sumologic logo
    sumologic 3.1.2 published on Friday, Jul 25, 2025 by sumologic