Class ResourceOptions

    • Field Detail

      • id

        @Nullable
        protected Output<java.lang.String> id
      • parent

        @Nullable
        protected Resource parent
      • dependsOn

        @Nullable
        protected Output<java.util.List<Resource>> dependsOn
      • protect

        protected boolean protect
      • ignoreChanges

        @Nullable
        protected java.util.List<java.lang.String> ignoreChanges
      • version

        @Nullable
        protected java.lang.String version
      • aliases

        @Nullable
        protected java.util.List<Output<Alias>> aliases
      • urn

        @Nullable
        protected java.lang.String urn
      • replaceOnChanges

        @Nullable
        protected java.util.List<java.lang.String> replaceOnChanges
      • retainOnDelete

        protected boolean retainOnDelete
      • pluginDownloadURL

        @Nullable
        protected java.lang.String pluginDownloadURL
    • Constructor Detail

      • ResourceOptions

        protected ResourceOptions()
      • ResourceOptions

        protected ResourceOptions​(@Nullable
                                  Output<java.lang.String> id,
                                  @Nullable
                                  Resource parent,
                                  @Nullable
                                  Output<java.util.List<Resource>> dependsOn,
                                  boolean protect,
                                  @Nullable
                                  java.util.List<java.lang.String> ignoreChanges,
                                  @Nullable
                                  java.lang.String version,
                                  @Nullable
                                  ProviderResource provider,
                                  @Nullable
                                  CustomTimeouts customTimeouts,
                                  @Nullable
                                  java.util.List<ResourceTransformation> resourceTransformations,
                                  @Nullable
                                  java.util.List<Output<Alias>> aliases,
                                  @Nullable
                                  java.lang.String urn,
                                  @Nullable
                                  java.util.List<java.lang.String> replaceOnChanges,
                                  boolean retainOnDelete,
                                  @Nullable
                                  java.lang.String pluginDownloadURL)
    • Method Detail

      • getId

        public java.util.Optional<Output<java.lang.String>> getId()
        An optional existing ID to load, rather than create.
      • getParent

        public java.util.Optional<Resource> getParent()
        An optional parent resource to which this resource belongs.
      • getDependsOn

        public Output<java.util.List<Resource>> getDependsOn()
        Optional additional explicit dependencies on other resources.
      • isProtect

        public boolean isProtect()
        When set to true, protect ensures this resource cannot be deleted.
      • getIgnoreChanges

        public java.util.List<java.lang.String> getIgnoreChanges()
        Ignore changes to any of the specified properties.
      • getVersion

        public java.util.Optional<java.lang.String> getVersion()
        An optional version, corresponding to the version of the provider plugin that should be used when operating on this resource. This version overrides the version information inferred from the current package and should rarely be used.
      • getCustomTimeouts

        public java.util.Optional<CustomTimeouts> getCustomTimeouts()
        An optional CustomTimeouts configuration.
      • getResourceTransformations

        public java.util.List<ResourceTransformation> getResourceTransformations()
        Optional list of transformations to apply to this resource during construction. The transformations are applied in order, and are applied prior to transformation applied to parent walking from the resource up to the stack.
      • getAliases

        public java.util.List<Output<Alias>> getAliases()
        An optional list of aliases to treat this resource as matching.
      • getUrn

        public java.util.Optional<java.lang.String> getUrn()
        The URN of a previously-registered resource of this type to read from the engine.
      • getReplaceOnChanges

        public java.util.List<java.lang.String> getReplaceOnChanges()
        Changes to any of these property paths will force a replacement. If this list includes `"*"`, changes to any properties will force a replacement. Initialization errors from previous deployments will require replacement instead of update only if `"*"` is passed.
      • isRetainOnDelete

        public boolean isRetainOnDelete()
        If set to True, the providers Delete method will not be called for this resource.
      • getPluginDownloadURL

        public java.util.Optional<java.lang.String> getPluginDownloadURL()
        An optional URL, corresponding to the url from which the provider plugin that should be used when operating on this resource is downloaded from. This URL overrides the download URL inferred from the current package and should rarely be used.
      • mergeSharedOptions

        @InternalUse
        protected static <T extends ResourceOptions> T mergeSharedOptions​(T options1,
                                                                          T options2)
      • mergeSharedOptions

        @InternalUse
        protected static <T extends ResourceOptions> T mergeSharedOptions​(T options1,
                                                                          T options2,
                                                                          @Nullable
                                                                          Output<java.lang.String> id)