Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.firebaserules/v1.Ruleset
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Create a Ruleset
from Source
. The Ruleset
is given a unique generated name which is returned to the caller. Source
containing syntactic or semantics errors will result in an error response indicating the first error encountered. For a detailed view of Source
issues, use TestRuleset.
Auto-naming is currently not supported for this resource.
Create Ruleset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Ruleset(name: string, args: RulesetArgs, opts?: CustomResourceOptions);
@overload
def Ruleset(resource_name: str,
args: RulesetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Ruleset(resource_name: str,
opts: Optional[ResourceOptions] = None,
source: Optional[SourceArgs] = None,
project: Optional[str] = None)
func NewRuleset(ctx *Context, name string, args RulesetArgs, opts ...ResourceOption) (*Ruleset, error)
public Ruleset(string name, RulesetArgs args, CustomResourceOptions? opts = null)
public Ruleset(String name, RulesetArgs args)
public Ruleset(String name, RulesetArgs args, CustomResourceOptions options)
type: google-native:firebaserules/v1:Ruleset
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 RulesetArgs
- 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 RulesetArgs
- 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 RulesetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RulesetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RulesetArgs
- 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 rulesetResource = new GoogleNative.FirebaseRules.V1.Ruleset("rulesetResource", new()
{
Source = new GoogleNative.FirebaseRules.V1.Inputs.SourceArgs
{
Files = new[]
{
new GoogleNative.FirebaseRules.V1.Inputs.FileArgs
{
Content = "string",
Name = "string",
Fingerprint = "string",
},
},
},
Project = "string",
});
example, err := firebaserules.NewRuleset(ctx, "rulesetResource", &firebaserules.RulesetArgs{
Source: &firebaserules.SourceArgs{
Files: firebaserules.FileArray{
&firebaserules.FileArgs{
Content: pulumi.String("string"),
Name: pulumi.String("string"),
Fingerprint: pulumi.String("string"),
},
},
},
Project: pulumi.String("string"),
})
var rulesetResource = new Ruleset("rulesetResource", RulesetArgs.builder()
.source(SourceArgs.builder()
.files(FileArgs.builder()
.content("string")
.name("string")
.fingerprint("string")
.build())
.build())
.project("string")
.build());
ruleset_resource = google_native.firebaserules.v1.Ruleset("rulesetResource",
source=google_native.firebaserules.v1.SourceArgs(
files=[google_native.firebaserules.v1.FileArgs(
content="string",
name="string",
fingerprint="string",
)],
),
project="string")
const rulesetResource = new google_native.firebaserules.v1.Ruleset("rulesetResource", {
source: {
files: [{
content: "string",
name: "string",
fingerprint: "string",
}],
},
project: "string",
});
type: google-native:firebaserules/v1:Ruleset
properties:
project: string
source:
files:
- content: string
fingerprint: string
name: string
Ruleset 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 Ruleset resource accepts the following input properties:
- Source
Pulumi.
Google Native. Firebase Rules. V1. Inputs. Source Source
for theRuleset
.- Project string
- Source
Source
Args Source
for theRuleset
.- Project string
- source
Source
Args Source
for theRuleset
.- project str
- source Property Map
Source
for theRuleset
.- project String
Outputs
All input properties are implicitly available as output properties. Additionally, the Ruleset resource produces the following output properties:
- Create
Time string - Time the
Ruleset
was created. - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Pulumi.
Google Native. Firebase Rules. V1. Outputs. Metadata Response - The metadata for this ruleset.
- Name string
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- Create
Time string - Time the
Ruleset
was created. - Id string
- The provider-assigned unique ID for this managed resource.
- Metadata
Metadata
Response - The metadata for this ruleset.
- Name string
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- create
Time String - Time the
Ruleset
was created. - id String
- The provider-assigned unique ID for this managed resource.
- metadata
Metadata
Response - The metadata for this ruleset.
- name String
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- create
Time string - Time the
Ruleset
was created. - id string
- The provider-assigned unique ID for this managed resource.
- metadata
Metadata
Response - The metadata for this ruleset.
- name string
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- create_
time str - Time the
Ruleset
was created. - id str
- The provider-assigned unique ID for this managed resource.
- metadata
Metadata
Response - The metadata for this ruleset.
- name str
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
- create
Time String - Time the
Ruleset
was created. - id String
- The provider-assigned unique ID for this managed resource.
- metadata Property Map
- The metadata for this ruleset.
- name String
- Name of the
Ruleset
. The ruleset_id is auto generated by the service. Format:projects/{project_id}/rulesets/{ruleset_id}
Supporting Types
File, FileArgs
- Content string
- Textual Content.
- Name string
- File name.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
.
- Content string
- Textual Content.
- Name string
- File name.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
.
- content String
- Textual Content.
- name String
- File name.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the
File
.
- content string
- Textual Content.
- name string
- File name.
- fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
.
- content str
- Textual Content.
- name str
- File name.
- fingerprint str
- Fingerprint (e.g. github sha) associated with the
File
.
- content String
- Textual Content.
- name String
- File name.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the
File
.
FileResponse, FileResponseArgs
- Content string
- Textual Content.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
. - Name string
- File name.
- Content string
- Textual Content.
- Fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
. - Name string
- File name.
- content String
- Textual Content.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the
File
. - name String
- File name.
- content string
- Textual Content.
- fingerprint string
- Fingerprint (e.g. github sha) associated with the
File
. - name string
- File name.
- content str
- Textual Content.
- fingerprint str
- Fingerprint (e.g. github sha) associated with the
File
. - name str
- File name.
- content String
- Textual Content.
- fingerprint String
- Fingerprint (e.g. github sha) associated with the
File
. - name String
- File name.
MetadataResponse, MetadataResponseArgs
- Services List<string>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- Services []string
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services List<String>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services string[]
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services Sequence[str]
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
- services List<String>
- Services that this ruleset has declarations for (e.g., "cloud.firestore"). There may be 0+ of these.
Source, SourceArgs
- Files
List<Pulumi.
Google Native. Firebase Rules. V1. Inputs. File> File
set constituting theSource
bundle.
- files List<File>
File
set constituting theSource
bundle.
- files Sequence[File]
File
set constituting theSource
bundle.
- files List<Property Map>
File
set constituting theSource
bundle.
SourceResponse, SourceResponseArgs
- Files
List<Pulumi.
Google Native. Firebase Rules. V1. Inputs. File Response> File
set constituting theSource
bundle.
- Files
[]File
Response File
set constituting theSource
bundle.
- files
List<File
Response> File
set constituting theSource
bundle.
- files
File
Response[] File
set constituting theSource
bundle.
- files
Sequence[File
Response] File
set constituting theSource
bundle.
- files List<Property Map>
File
set constituting theSource
bundle.
Package Details
- Repository
- Google Cloud Native pulumi/pulumi-google-native
- License
- Apache-2.0
Google Cloud Native is in preview. Google Cloud Classic is fully supported.