Google Cloud Native is in preview. Google Cloud Classic is fully supported.
google-native.apigee/v1.Resourcefile
Explore with Pulumi AI
Google Cloud Native is in preview. Google Cloud Classic is fully supported.
Creates a resource file. Specify the Content-Type
as application/octet-stream
or multipart/form-data
. For more information about resource files, see Resource files.
Auto-naming is currently not supported for this resource.
Create Resourcefile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Resourcefile(name: string, args: ResourcefileArgs, opts?: CustomResourceOptions);
@overload
def Resourcefile(resource_name: str,
args: ResourcefileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Resourcefile(resource_name: str,
opts: Optional[ResourceOptions] = None,
environment_id: Optional[str] = None,
name: Optional[str] = None,
organization_id: Optional[str] = None,
type: Optional[str] = None,
content_type: Optional[str] = None,
data: Optional[str] = None,
extensions: Optional[Sequence[Mapping[str, str]]] = None,
file: Optional[Union[pulumi.Asset, pulumi.Archive]] = None)
func NewResourcefile(ctx *Context, name string, args ResourcefileArgs, opts ...ResourceOption) (*Resourcefile, error)
public Resourcefile(string name, ResourcefileArgs args, CustomResourceOptions? opts = null)
public Resourcefile(String name, ResourcefileArgs args)
public Resourcefile(String name, ResourcefileArgs args, CustomResourceOptions options)
type: google-native:apigee/v1:Resourcefile
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 ResourcefileArgs
- 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 ResourcefileArgs
- 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 ResourcefileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ResourcefileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ResourcefileArgs
- 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 resourcefileResource = new GoogleNative.Apigee.V1.Resourcefile("resourcefileResource", new()
{
EnvironmentId = "string",
Name = "string",
OrganizationId = "string",
Type = "string",
ContentType = "string",
Data = "string",
Extensions = new[]
{
{
{ "string", "string" },
},
},
File = new StringAsset("content"),
});
example, err := apigee.NewResourcefile(ctx, "resourcefileResource", &apigee.ResourcefileArgs{
EnvironmentId: pulumi.String("string"),
Name: pulumi.String("string"),
OrganizationId: pulumi.String("string"),
Type: pulumi.String("string"),
ContentType: pulumi.String("string"),
Data: pulumi.String("string"),
Extensions: pulumi.StringMapArray{
pulumi.StringMap{
"string": pulumi.String("string"),
},
},
File: pulumi.NewStringAsset("content"),
})
var resourcefileResource = new Resourcefile("resourcefileResource", ResourcefileArgs.builder()
.environmentId("string")
.name("string")
.organizationId("string")
.type("string")
.contentType("string")
.data("string")
.extensions(Map.of("string", "string"))
.file(new StringAsset("content"))
.build());
resourcefile_resource = google_native.apigee.v1.Resourcefile("resourcefileResource",
environment_id="string",
name="string",
organization_id="string",
type="string",
content_type="string",
data="string",
extensions=[{
"string": "string",
}],
file=pulumi.StringAsset("content"))
const resourcefileResource = new google_native.apigee.v1.Resourcefile("resourcefileResource", {
environmentId: "string",
name: "string",
organizationId: "string",
type: "string",
contentType: "string",
data: "string",
extensions: [{
string: "string",
}],
file: new pulumi.asset.StringAsset("content"),
});
type: google-native:apigee/v1:Resourcefile
properties:
contentType: string
data: string
environmentId: string
extensions:
- string: string
file:
fn::StringAsset: content
name: string
organizationId: string
type: string
Resourcefile 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 Resourcefile resource accepts the following input properties:
- Environment
Id string - Name string
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- Organization
Id string - Type string
- Required. Resource file type. {{ resource_file_type }}
- Content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- Data string
- The HTTP request/response body as raw binary.
- Extensions
List<Immutable
Dictionary<string, string>> - Application specific response metadata. Must be set in the first response for streaming APIs.
- File
Asset
Or Archive - File to upload.
- Environment
Id string - Name string
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- Organization
Id string - Type string
- Required. Resource file type. {{ resource_file_type }}
- Content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- Data string
- The HTTP request/response body as raw binary.
- Extensions []map[string]string
- Application specific response metadata. Must be set in the first response for streaming APIs.
- File
pulumi.
Asset Or Archive - File to upload.
- environment
Id String - name String
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id String - type String
- Required. Resource file type. {{ resource_file_type }}
- content
Type String - The HTTP Content-Type header value specifying the content type of the body.
- data String
- The HTTP request/response body as raw binary.
- extensions List<Map<String,String>>
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
Asset
Or Archive - File to upload.
- environment
Id string - name string
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id string - type string
- Required. Resource file type. {{ resource_file_type }}
- content
Type string - The HTTP Content-Type header value specifying the content type of the body.
- data string
- The HTTP request/response body as raw binary.
- extensions {[key: string]: string}[]
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
pulumi.asset.
Asset | pulumi.asset. Archive - File to upload.
- environment_
id str - name str
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization_
id str - type str
- Required. Resource file type. {{ resource_file_type }}
- content_
type str - The HTTP Content-Type header value specifying the content type of the body.
- data str
- The HTTP request/response body as raw binary.
- extensions Sequence[Mapping[str, str]]
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file
Union[pulumi.
Asset, pulumi. Archive] - File to upload.
- environment
Id String - name String
- Required. Name of the resource file. Must match the regular expression: [a-zA-Z0-9:/\!@#$%^&{}[]()+-=,.~'` ]{1,255}
- organization
Id String - type String
- Required. Resource file type. {{ resource_file_type }}
- content
Type String - The HTTP Content-Type header value specifying the content type of the body.
- data String
- The HTTP request/response body as raw binary.
- extensions List<Map<String>>
- Application specific response metadata. Must be set in the first response for streaming APIs.
- file Asset
- File to upload.
Outputs
All input properties are implicitly available as output properties. Additionally, the Resourcefile 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.
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.