1. Packages
  2. ElasticCloud (EC)
  3. API Docs
  4. SecurityProject
ElasticCloud (EC) v0.9.0 published on Friday, Aug 30, 2024 by Pulumi

ec.SecurityProject

Explore with Pulumi AI

ec logo
ElasticCloud (EC) v0.9.0 published on Friday, Aug 30, 2024 by Pulumi

    Technical preview

    This functionality is in technical preview and may be changed or removed in a future release. Elastic will work to fix any issues, but features in technical preview are not subject to the support SLA of official GA features.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ec from "@pulumi/ec";
    
    const myProject = new ec.SecurityProject("my_project", {
        name: "my_project",
        regionId: "aws-us-east-1",
    });
    
    import pulumi
    import pulumi_ec as ec
    
    my_project = ec.SecurityProject("my_project",
        name="my_project",
        region_id="aws-us-east-1")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-ec/sdk/go/ec"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ec.NewSecurityProject(ctx, "my_project", &ec.SecurityProjectArgs{
    			Name:     pulumi.String("my_project"),
    			RegionId: pulumi.String("aws-us-east-1"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ElasticCloud = Pulumi.ElasticCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var myProject = new ElasticCloud.SecurityProject("my_project", new()
        {
            Name = "my_project",
            RegionId = "aws-us-east-1",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ec.SecurityProject;
    import com.pulumi.ec.SecurityProjectArgs;
    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 myProject = new SecurityProject("myProject", SecurityProjectArgs.builder()
                .name("my_project")
                .regionId("aws-us-east-1")
                .build());
    
        }
    }
    
    resources:
      myProject:
        type: ec:SecurityProject
        name: my_project
        properties:
          name: my_project
          regionId: aws-us-east-1
    

    Create SecurityProject Resource

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

    Constructor syntax

    new SecurityProject(name: string, args: SecurityProjectArgs, opts?: CustomResourceOptions);
    @overload
    def SecurityProject(resource_name: str,
                        args: SecurityProjectArgs,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def SecurityProject(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        region_id: Optional[str] = None,
                        admin_features_package: Optional[str] = None,
                        alias: Optional[str] = None,
                        name: Optional[str] = None,
                        product_types: Optional[Sequence[SecurityProjectProductTypeArgs]] = None)
    func NewSecurityProject(ctx *Context, name string, args SecurityProjectArgs, opts ...ResourceOption) (*SecurityProject, error)
    public SecurityProject(string name, SecurityProjectArgs args, CustomResourceOptions? opts = null)
    public SecurityProject(String name, SecurityProjectArgs args)
    public SecurityProject(String name, SecurityProjectArgs args, CustomResourceOptions options)
    
    type: ec:SecurityProject
    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 SecurityProjectArgs
    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 SecurityProjectArgs
    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 SecurityProjectArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecurityProjectArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecurityProjectArgs
    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 securityProjectResource = new ElasticCloud.SecurityProject("securityProjectResource", new()
    {
        RegionId = "string",
        AdminFeaturesPackage = "string",
        Alias = "string",
        Name = "string",
        ProductTypes = new[]
        {
            new ElasticCloud.Inputs.SecurityProjectProductTypeArgs
            {
                ProductLine = "string",
                ProductTier = "string",
            },
        },
    });
    
    example, err := ec.NewSecurityProject(ctx, "securityProjectResource", &ec.SecurityProjectArgs{
    	RegionId:             pulumi.String("string"),
    	AdminFeaturesPackage: pulumi.String("string"),
    	Alias:                pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    	ProductTypes: ec.SecurityProjectProductTypeArray{
    		&ec.SecurityProjectProductTypeArgs{
    			ProductLine: pulumi.String("string"),
    			ProductTier: pulumi.String("string"),
    		},
    	},
    })
    
    var securityProjectResource = new SecurityProject("securityProjectResource", SecurityProjectArgs.builder()
        .regionId("string")
        .adminFeaturesPackage("string")
        .alias("string")
        .name("string")
        .productTypes(SecurityProjectProductTypeArgs.builder()
            .productLine("string")
            .productTier("string")
            .build())
        .build());
    
    security_project_resource = ec.SecurityProject("securityProjectResource",
        region_id="string",
        admin_features_package="string",
        alias="string",
        name="string",
        product_types=[ec.SecurityProjectProductTypeArgs(
            product_line="string",
            product_tier="string",
        )])
    
    const securityProjectResource = new ec.SecurityProject("securityProjectResource", {
        regionId: "string",
        adminFeaturesPackage: "string",
        alias: "string",
        name: "string",
        productTypes: [{
            productLine: "string",
            productTier: "string",
        }],
    });
    
    type: ec:SecurityProject
    properties:
        adminFeaturesPackage: string
        alias: string
        name: string
        productTypes:
            - productLine: string
              productTier: string
        regionId: string
    

    SecurityProject Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SecurityProject resource accepts the following input properties:

    RegionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    AdminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    Alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    Name string
    Descriptive name for a project.
    ProductTypes List<Pulumi.ElasticCloud.Inputs.SecurityProjectProductType>
    RegionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    AdminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    Alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    Name string
    Descriptive name for a project.
    ProductTypes []SecurityProjectProductTypeArgs
    regionId String
    Unique human-readable identifier for a region in Elastic Cloud.
    adminFeaturesPackage String
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias String
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    name String
    Descriptive name for a project.
    productTypes List<SecurityProjectProductType>
    regionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    adminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    name string
    Descriptive name for a project.
    productTypes SecurityProjectProductType[]
    region_id str
    Unique human-readable identifier for a region in Elastic Cloud.
    admin_features_package str
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias str
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    name str
    Descriptive name for a project.
    product_types Sequence[SecurityProjectProductTypeArgs]
    regionId String
    Unique human-readable identifier for a region in Elastic Cloud.
    adminFeaturesPackage String
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias String
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    name String
    Descriptive name for a project.
    productTypes List<Property Map>

    Outputs

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

    CloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    Credentials Pulumi.ElasticCloud.Outputs.SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    Endpoints Pulumi.ElasticCloud.Outputs.SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata Pulumi.ElasticCloud.Outputs.SecurityProjectMetadata
    Additional details about the project.
    Type string
    the type of the project
    CloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    Credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    Endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    Id string
    The provider-assigned unique ID for this managed resource.
    Metadata SecurityProjectMetadata
    Additional details about the project.
    Type string
    the type of the project
    cloudId String
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata SecurityProjectMetadata
    Additional details about the project.
    type String
    the type of the project
    cloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    id string
    The provider-assigned unique ID for this managed resource.
    metadata SecurityProjectMetadata
    Additional details about the project.
    type string
    the type of the project
    cloud_id str
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    id str
    The provider-assigned unique ID for this managed resource.
    metadata SecurityProjectMetadata
    Additional details about the project.
    type str
    the type of the project
    cloudId String
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials Property Map
    Basic auth credentials to access the Elasticsearch API.
    endpoints Property Map
    The endpoints to access the different apps of the project.
    id String
    The provider-assigned unique ID for this managed resource.
    metadata Property Map
    Additional details about the project.
    type String
    the type of the project

    Look up Existing SecurityProject Resource

    Get an existing SecurityProject 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?: SecurityProjectState, opts?: CustomResourceOptions): SecurityProject
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            admin_features_package: Optional[str] = None,
            alias: Optional[str] = None,
            cloud_id: Optional[str] = None,
            credentials: Optional[SecurityProjectCredentialsArgs] = None,
            endpoints: Optional[SecurityProjectEndpointsArgs] = None,
            metadata: Optional[SecurityProjectMetadataArgs] = None,
            name: Optional[str] = None,
            product_types: Optional[Sequence[SecurityProjectProductTypeArgs]] = None,
            region_id: Optional[str] = None,
            type: Optional[str] = None) -> SecurityProject
    func GetSecurityProject(ctx *Context, name string, id IDInput, state *SecurityProjectState, opts ...ResourceOption) (*SecurityProject, error)
    public static SecurityProject Get(string name, Input<string> id, SecurityProjectState? state, CustomResourceOptions? opts = null)
    public static SecurityProject get(String name, Output<String> id, SecurityProjectState 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:
    AdminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    Alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    CloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    Credentials Pulumi.ElasticCloud.Inputs.SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    Endpoints Pulumi.ElasticCloud.Inputs.SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    Metadata Pulumi.ElasticCloud.Inputs.SecurityProjectMetadata
    Additional details about the project.
    Name string
    Descriptive name for a project.
    ProductTypes List<Pulumi.ElasticCloud.Inputs.SecurityProjectProductType>
    RegionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    Type string
    the type of the project
    AdminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    Alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    CloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    Credentials SecurityProjectCredentialsArgs
    Basic auth credentials to access the Elasticsearch API.
    Endpoints SecurityProjectEndpointsArgs
    The endpoints to access the different apps of the project.
    Metadata SecurityProjectMetadataArgs
    Additional details about the project.
    Name string
    Descriptive name for a project.
    ProductTypes []SecurityProjectProductTypeArgs
    RegionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    Type string
    the type of the project
    adminFeaturesPackage String
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias String
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    cloudId String
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    metadata SecurityProjectMetadata
    Additional details about the project.
    name String
    Descriptive name for a project.
    productTypes List<SecurityProjectProductType>
    regionId String
    Unique human-readable identifier for a region in Elastic Cloud.
    type String
    the type of the project
    adminFeaturesPackage string
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias string
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    cloudId string
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentials
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpoints
    The endpoints to access the different apps of the project.
    metadata SecurityProjectMetadata
    Additional details about the project.
    name string
    Descriptive name for a project.
    productTypes SecurityProjectProductType[]
    regionId string
    Unique human-readable identifier for a region in Elastic Cloud.
    type string
    the type of the project
    admin_features_package str
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias str
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    cloud_id str
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials SecurityProjectCredentialsArgs
    Basic auth credentials to access the Elasticsearch API.
    endpoints SecurityProjectEndpointsArgs
    The endpoints to access the different apps of the project.
    metadata SecurityProjectMetadataArgs
    Additional details about the project.
    name str
    Descriptive name for a project.
    product_types Sequence[SecurityProjectProductTypeArgs]
    region_id str
    Unique human-readable identifier for a region in Elastic Cloud.
    type str
    the type of the project
    adminFeaturesPackage String
    admin features package (BYOK, BYOIDP, CCS, CCR)
    alias String
    A custom domain label compatible with RFC-1035 standards. Derived from the project name by default.
    cloudId String
    The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
    credentials Property Map
    Basic auth credentials to access the Elasticsearch API.
    endpoints Property Map
    The endpoints to access the different apps of the project.
    metadata Property Map
    Additional details about the project.
    name String
    Descriptive name for a project.
    productTypes List<Property Map>
    regionId String
    Unique human-readable identifier for a region in Elastic Cloud.
    type String
    the type of the project

    Supporting Types

    SecurityProjectCredentials, SecurityProjectCredentialsArgs

    Password string
    Basic auth password that can be used to access the Elasticsearch API.
    Username string
    Basic auth username that can be used to access the Elasticsearch API.
    Password string
    Basic auth password that can be used to access the Elasticsearch API.
    Username string
    Basic auth username that can be used to access the Elasticsearch API.
    password String
    Basic auth password that can be used to access the Elasticsearch API.
    username String
    Basic auth username that can be used to access the Elasticsearch API.
    password string
    Basic auth password that can be used to access the Elasticsearch API.
    username string
    Basic auth username that can be used to access the Elasticsearch API.
    password str
    Basic auth password that can be used to access the Elasticsearch API.
    username str
    Basic auth username that can be used to access the Elasticsearch API.
    password String
    Basic auth password that can be used to access the Elasticsearch API.
    username String
    Basic auth username that can be used to access the Elasticsearch API.

    SecurityProjectEndpoints, SecurityProjectEndpointsArgs

    Elasticsearch string
    The endpoint to access elasticsearch.
    Kibana string
    The endpoint to access kibana.
    Elasticsearch string
    The endpoint to access elasticsearch.
    Kibana string
    The endpoint to access kibana.
    elasticsearch String
    The endpoint to access elasticsearch.
    kibana String
    The endpoint to access kibana.
    elasticsearch string
    The endpoint to access elasticsearch.
    kibana string
    The endpoint to access kibana.
    elasticsearch str
    The endpoint to access elasticsearch.
    kibana str
    The endpoint to access kibana.
    elasticsearch String
    The endpoint to access elasticsearch.
    kibana String
    The endpoint to access kibana.

    SecurityProjectMetadata, SecurityProjectMetadataArgs

    CreatedAt string
    Date and time when the project was created.
    CreatedBy string
    ID of the user.
    OrganizationId string
    The Organization ID who owns the project.
    SuspendedAt string
    Date and time when the project was suspended.
    SuspendedReason string
    Reason why the project was suspended.
    CreatedAt string
    Date and time when the project was created.
    CreatedBy string
    ID of the user.
    OrganizationId string
    The Organization ID who owns the project.
    SuspendedAt string
    Date and time when the project was suspended.
    SuspendedReason string
    Reason why the project was suspended.
    createdAt String
    Date and time when the project was created.
    createdBy String
    ID of the user.
    organizationId String
    The Organization ID who owns the project.
    suspendedAt String
    Date and time when the project was suspended.
    suspendedReason String
    Reason why the project was suspended.
    createdAt string
    Date and time when the project was created.
    createdBy string
    ID of the user.
    organizationId string
    The Organization ID who owns the project.
    suspendedAt string
    Date and time when the project was suspended.
    suspendedReason string
    Reason why the project was suspended.
    created_at str
    Date and time when the project was created.
    created_by str
    ID of the user.
    organization_id str
    The Organization ID who owns the project.
    suspended_at str
    Date and time when the project was suspended.
    suspended_reason str
    Reason why the project was suspended.
    createdAt String
    Date and time when the project was created.
    createdBy String
    ID of the user.
    organizationId String
    The Organization ID who owns the project.
    suspendedAt String
    Date and time when the project was suspended.
    suspendedReason String
    Reason why the project was suspended.

    SecurityProjectProductType, SecurityProjectProductTypeArgs

    ProductLine string
    The identifier of the Security Solution product line.
    ProductTier string
    The identifier of the Security Solution product tier.
    ProductLine string
    The identifier of the Security Solution product line.
    ProductTier string
    The identifier of the Security Solution product tier.
    productLine String
    The identifier of the Security Solution product line.
    productTier String
    The identifier of the Security Solution product tier.
    productLine string
    The identifier of the Security Solution product line.
    productTier string
    The identifier of the Security Solution product tier.
    product_line str
    The identifier of the Security Solution product line.
    product_tier str
    The identifier of the Security Solution product tier.
    productLine String
    The identifier of the Security Solution product line.
    productTier String
    The identifier of the Security Solution product tier.

    Import

    Projects can be imported using the id, for example:

    $ pulumi import ec:index/securityProject:SecurityProject id 320b7b540dfc967a7a649c18e2fce4ed
    

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

    Package Details

    Repository
    ec pulumi/pulumi-ec
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ec Terraform Provider.
    ec logo
    ElasticCloud (EC) v0.9.0 published on Friday, Aug 30, 2024 by Pulumi