mirror of https://github.com/pulumi/pulumi.git
109 lines
4.5 KiB
Cheetah
109 lines
4.5 KiB
Cheetah
{{ template "header" .Header }}
|
|
|
|
{{ htmlSafe .Comment }}
|
|
|
|
<!-- Create resource -->
|
|
## Create a {{ .Header.Title }} Resource
|
|
|
|
{{ htmlSafe "{{< langchoose csharp nojavascript >}}" }}
|
|
|
|
<div class="highlight"><pre class="chroma"><code class="language-typescript" data-lang="typescript"><span class="k">new </span>{{ template "linkify_param" .ConstructorResource.nodejs }}<span class="p">(</span>{{ htmlSafe .ConstructorParams.nodejs }}<span class="p">);</span></code></pre></div>
|
|
|
|
```python
|
|
def {{ .Header.Title }}(resource_name, id, opts=None{{ template "py_param" .InputProperties.python }}, __props__=None)
|
|
```
|
|
|
|
<div class="highlight"><pre class="chroma"><code class="language-go" data-lang="go"><span class="k">func </span>New{{ .Header.Title }}<span class="p">(</span>{{ htmlSafe .ConstructorParams.go }}<span class="p">) (*{{ template "linkify_param" .ConstructorResource.go }}, error)</span></code></pre></div>
|
|
|
|
<div class="highlight"><pre class="chroma"><code class="language-csharp" data-lang="csharp"><span class="k">public </span>{{ template "linkify_param" .ConstructorResource.csharp }}<span class="p">(</span>{{ htmlSafe .ConstructorParams.csharp }}<span class="p">)</span></code></pre></div>
|
|
|
|
Creates a {{ .Header.Title }} resource with the given unique name, arguments, and options.
|
|
|
|
{{ htmlSafe "{{% lang nodejs %}}" }}
|
|
{{ template "constructor_args" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang go %}}" }}
|
|
{{ template "constructor_args" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang csharp %}}" }}
|
|
{{ template "constructor_args" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
The following arguments are supported:
|
|
{{ template "properties" .InputProperties }}
|
|
|
|
<!-- Output properties -->
|
|
{{ if ne (len .OutputProperties) 0 }}
|
|
## {{.Header.Title}} Output Properties
|
|
|
|
The following output properties are available:
|
|
|
|
{{ template "properties" .OutputProperties }}
|
|
{{ end }}
|
|
|
|
<!-- Read resource -->
|
|
{{ if ne (len .StateInputs) 0 }}
|
|
## Look up an Existing {{.Header.Title}} Resource
|
|
|
|
{{ htmlSafe "{{< langchoose csharp nojavascript >}}" }}
|
|
|
|
```typescript
|
|
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: {{ .StateParam }}, opts?: pulumi.CustomResourceOptions): {{ .Header.Title }};
|
|
```
|
|
|
|
```python
|
|
def get(resource_name, id, opts=None{{ template "py_param" .StateInputs.python }})
|
|
```
|
|
|
|
```go
|
|
func Get{{.Header.Title}}(ctx *pulumi.Context, name string, id pulumi.IDInput, state *{{ .StateParam }}, opts ...pulumi.ResourceOption) (*Bucket, error)
|
|
```
|
|
|
|
```csharp
|
|
public static {{ .Header.Title }} Get(string name, Input<string> id, {{ .StateParam }}? state = null, CustomResourceOptions? options = null);
|
|
```
|
|
|
|
Get an existing {{.Header.Title}} resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
|
|
|
|
{{ htmlSafe "{{% lang nodejs %}}" }}
|
|
{{ template "read_inputs" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang go %}}" }}
|
|
{{ template "read_inputs" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang csharp %}}" }}
|
|
{{ template "read_inputs" }}
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
The following state arguments are supported:
|
|
{{ template "properties" .StateInputs }}
|
|
|
|
{{ end }}
|
|
|
|
<!-- Supporting types -->
|
|
{{ if ne (len .NestedTypes) 0 }}
|
|
|
|
## Supporting Types
|
|
{{ range .NestedTypes }}
|
|
#### {{ .Name }}
|
|
{{ htmlSafe "{{% lang nodejs %}}" }}
|
|
> See the {{ if ne .APIDocLinks.nodejs.InputType "" }}<a href="{{ .APIDocLinks.nodejs.InputType }}">input</a>{{ end }} {{ if and (ne .APIDocLinks.nodejs.InputType "") (ne .APIDocLinks.nodejs.OutputType "") }}and{{ end }} {{ if ne .APIDocLinks.nodejs.OutputType "" }}<a href="{{ .APIDocLinks.nodejs.OutputType }}">output</a>{{ end }} API doc for this type.
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang go %}}" }}
|
|
> See the {{ if ne .APIDocLinks.go.InputType "" }}<a href="{{ .APIDocLinks.go.InputType }}">input</a>{{ end }} {{ if and (ne .APIDocLinks.go.InputType "") (ne .APIDocLinks.go.OutputType "") }}and{{ end }} {{ if ne .APIDocLinks.go.OutputType "" }}<a href="{{ .APIDocLinks.go.OutputType }}">output</a>{{ end }} API doc for this type.
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ htmlSafe "{{% lang csharp %}}" }}
|
|
> See the {{ if ne .APIDocLinks.csharp.InputType "" }}<a href="{{ .APIDocLinks.csharp.InputType }}">input</a>{{ end }} {{ if and (ne .APIDocLinks.csharp.InputType "") (ne .APIDocLinks.csharp.OutputType "") }}and{{ end }} {{ if ne .APIDocLinks.csharp.OutputType "" }}<a href="{{ .APIDocLinks.csharp.OutputType }}">output</a>{{ end }} API doc for this type.
|
|
{{ htmlSafe "{{% /lang %}}" }}
|
|
|
|
{{ template "properties" .Properties }}
|
|
{{ end }}
|
|
|
|
{{ end }}
|