ec.SecurityProject
Explore with Pulumi AI
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=[{
"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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecurityProject resource accepts the following input properties:
- Region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- Admin
Features stringPackage - 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.
- Product
Types List<Pulumi.Elastic Cloud. Inputs. Security Project Product Type>
- Region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- Admin
Features stringPackage - 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.
- Product
Types []SecurityProject Product Type Args
- region
Id String - Unique human-readable identifier for a region in Elastic Cloud.
- admin
Features StringPackage - 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.
- product
Types List<SecurityProject Product Type>
- region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- admin
Features stringPackage - 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.
- product
Types SecurityProject Product Type[]
- region_
id str - Unique human-readable identifier for a region in Elastic Cloud.
- admin_
features_ strpackage - 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[SecurityProject Product Type Args]
- region
Id String - Unique human-readable identifier for a region in Elastic Cloud.
- admin
Features StringPackage - 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.
- product
Types List<Property Map>
Outputs
All input properties are implicitly available as output properties. Additionally, the SecurityProject resource produces the following output properties:
- Cloud
Id 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.
Elastic Cloud. Outputs. Security Project Credentials - Basic auth credentials to access the Elasticsearch API.
- Endpoints
Pulumi.
Elastic Cloud. Outputs. Security Project Endpoints - The endpoints to access the different apps of the project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Pulumi.
Elastic Cloud. Outputs. Security Project Metadata - Additional details about the project.
- Type string
- the type of the project
- Cloud
Id string - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- Credentials
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- Endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Security
Project Metadata - Additional details about the project.
- Type string
- the type of the project
- cloud
Id String - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- credentials
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- id String
- The provider-assigned unique ID for this managed resource.
- metadata
Security
Project Metadata - Additional details about the project.
- type String
- the type of the project
- cloud
Id string - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- credentials
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- id string
- The provider-assigned unique ID for this managed resource.
- metadata
Security
Project Metadata - 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
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- id str
- The provider-assigned unique ID for this managed resource.
- metadata
Security
Project Metadata - Additional details about the project.
- type str
- the type of the project
- cloud
Id 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.
- Admin
Features stringPackage - 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.
- Cloud
Id 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.
Elastic Cloud. Inputs. Security Project Credentials - Basic auth credentials to access the Elasticsearch API.
- Endpoints
Pulumi.
Elastic Cloud. Inputs. Security Project Endpoints - The endpoints to access the different apps of the project.
- Metadata
Pulumi.
Elastic Cloud. Inputs. Security Project Metadata - Additional details about the project.
- Name string
- Descriptive name for a project.
- Product
Types List<Pulumi.Elastic Cloud. Inputs. Security Project Product Type> - Region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- Type string
- the type of the project
- Admin
Features stringPackage - 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.
- Cloud
Id string - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- Credentials
Security
Project Credentials Args - Basic auth credentials to access the Elasticsearch API.
- Endpoints
Security
Project Endpoints Args - The endpoints to access the different apps of the project.
- Metadata
Security
Project Metadata Args - Additional details about the project.
- Name string
- Descriptive name for a project.
- Product
Types []SecurityProject Product Type Args - Region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- Type string
- the type of the project
- admin
Features StringPackage - 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.
- cloud
Id String - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- credentials
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- metadata
Security
Project Metadata - Additional details about the project.
- name String
- Descriptive name for a project.
- product
Types List<SecurityProject Product Type> - region
Id String - Unique human-readable identifier for a region in Elastic Cloud.
- type String
- the type of the project
- admin
Features stringPackage - 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.
- cloud
Id string - The cloud ID, an encoded string that provides other Elastic services with the necessary information to connect to this Elasticsearch and Kibana.
- credentials
Security
Project Credentials - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints - The endpoints to access the different apps of the project.
- metadata
Security
Project Metadata - Additional details about the project.
- name string
- Descriptive name for a project.
- product
Types SecurityProject Product Type[] - region
Id string - Unique human-readable identifier for a region in Elastic Cloud.
- type string
- the type of the project
- admin_
features_ strpackage - 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
Security
Project Credentials Args - Basic auth credentials to access the Elasticsearch API.
- endpoints
Security
Project Endpoints Args - The endpoints to access the different apps of the project.
- metadata
Security
Project Metadata Args - Additional details about the project.
- name str
- Descriptive name for a project.
- product_
types Sequence[SecurityProject Product Type Args] - region_
id str - Unique human-readable identifier for a region in Elastic Cloud.
- type str
- the type of the project
- admin
Features StringPackage - 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.
- cloud
Id 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.
- product
Types List<Property Map> - region
Id String - Unique human-readable identifier for a region in Elastic Cloud.
- type String
- the type of the project
Supporting Types
SecurityProjectCredentials, SecurityProjectCredentialsArgs
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
- Created
At string - Date and time when the project was created.
- Created
By string - ID of the user.
- Organization
Id string - The Organization ID who owns the project.
- Suspended
At string - Date and time when the project was suspended.
- Suspended
Reason string - Reason why the project was suspended.
- Created
At string - Date and time when the project was created.
- Created
By string - ID of the user.
- Organization
Id string - The Organization ID who owns the project.
- Suspended
At string - Date and time when the project was suspended.
- Suspended
Reason string - Reason why the project was suspended.
- created
At String - Date and time when the project was created.
- created
By String - ID of the user.
- organization
Id String - The Organization ID who owns the project.
- suspended
At String - Date and time when the project was suspended.
- suspended
Reason String - Reason why the project was suspended.
- created
At string - Date and time when the project was created.
- created
By string - ID of the user.
- organization
Id string - The Organization ID who owns the project.
- suspended
At string - Date and time when the project was suspended.
- suspended
Reason 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.
- created
At String - Date and time when the project was created.
- created
By String - ID of the user.
- organization
Id String - The Organization ID who owns the project.
- suspended
At String - Date and time when the project was suspended.
- suspended
Reason String - Reason why the project was suspended.
SecurityProjectProductType, SecurityProjectProductTypeArgs
- Product
Line string - The identifier of the Security Solution product line.
- Product
Tier string - The identifier of the Security Solution product tier.
- Product
Line string - The identifier of the Security Solution product line.
- Product
Tier string - The identifier of the Security Solution product tier.
- product
Line String - The identifier of the Security Solution product line.
- product
Tier String - The identifier of the Security Solution product tier.
- product
Line string - The identifier of the Security Solution product line.
- product
Tier 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.
- product
Line String - The identifier of the Security Solution product line.
- product
Tier 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.